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: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2008 06:57:59 -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 #28 from gdr at cs dot tamu dot edu 2008-01-07 06:57 -------
Subject: Re: [4.2/4.3 regression] ICE with incompatible types for ?: with
"complex type" conversion
"mark at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| Imagine that you're a user. You read about GNU __complex__ types in the
| manual. You write some code with them. Then, you want to call some C++
| functions that expect std::complex. You look at the libstdc++ source
| code, notice a constructor there that does what you want, and use it.
| You upgrade to a new version of G++ and your code breaks. I'm sure you
| agree that this doesn't make you happy.
But, as that hypothetical user, I would not have any ground to be unhappy.
After all, it was code based on unfounded extrapolations.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31780