On 10/09/14 09:25, Jason Merrill wrote:
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:
my thought was to at least put it next to the explicit_int = -1 above.

  /* 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 '=='?

I think it wants to check for _complex being __complex double, not not being _complex int (other failure modes exist!)

nathan

--
Nathan Sidwell

Reply via email to