[PATCH, C++] Fix PR63366: __complex not equivalent to __complex double in C++
Jason Merrill
jason@redhat.com
Thu Oct 9 13:28:00 GMT 2014
On 10/09/2014 05:24 AM, Thomas Preud'homme wrote:
>> "ISO C++ forbids declaration of %qs with no type", name);
>>
>> type = integer_type_node;
>> + defaulted_int = 1;
I would think we want to handle this up in the existing defaulted_int block:
> /* No type at all: default to `int', and set DEFAULTED_INT
> because it was not a user-defined typedef. */
> if (type == NULL_TREE && (signed_p || unsigned_p || long_p || short_p))
>> + return typeid (__complex) != typeid (__complex double);
Don't we want this to be '=='?
Jason
More information about the Gcc-patches
mailing list