This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31780] [4.2/4.3 regression] ICE with incompatible types for ?: with "complex type" conversion
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 18:42:04 -0000
- Subject: [Bug c++/31780] [4.2/4.3 regression] ICE with incompatible types for ?: with "complex type" conversion
- References: <bug-31780-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31780