[Bug c++/31780] [4.2/4.3 regression] ICE with incompatible types for ?: with "complex type" conversion

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Sun Jul 8 18:42:00 GMT 2007

------- Comment #12 from pcarlini at suse dot de  2007-07-08 18:42 -------
(In reply to comment #11)
> I was confused by your crediting me with magic because it was Roger
> Sayle who fixed the bug.

Ah! Curious, he doesn't work on the C++ front-end very often...

> So, libstdc++ is the rare case.  Changing the library will give us very
> natural semantics in the front end; we just declare GNU __complex__ to
> be an arithmetic type, and everything else follows.  Absent direction
> from the ISO C++ committee regarding integration of C99 complex into
> C++, that seems like the best we can do.

What can I say... Gaby designed the complex class that way, those special
constructors included. If we cannot avoid adding more constructors, so be it,
but of course please make sure Gaby agrees.


pcarlini at suse dot de changed:

           What    |Removed                     |Added
             Status|WAITING                     |NEW
   Last reconfirmed|2007-07-07 19:26:39         |2007-07-08 18:42:04
               date|                            |


More information about the Gcc-bugs mailing list