This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, C++] Fix PR63366: __complex not equivalent to __complex double in C++
- From: Jason Merrill <jason at redhat dot com>
- To: "Thomas Preud'homme" <thomas dot preudhomme at arm dot com>, gcc-patches at gcc dot gnu dot org, "'Nathan Sidwell'" <nathan at codesourcery dot com>
- Date: Thu, 09 Oct 2014 09:25:23 -0400
- Subject: Re: [PATCH, C++] Fix PR63366: __complex not equivalent to __complex double in C++
- Authentication-results: sourceware.org; auth=none
- References: <000001cfdbb7$974ce1d0$c5e6a570$ at arm dot com> <002901cfe3a2$c4b6dfc0$4e249f40$ at arm dot com>
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