This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, C++] Fix PR63366: __complex not equivalent to __complex double in C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]