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: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2008 16:17:44 -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 #34 from mark at codesourcery dot com 2008-01-07 16:17 -------
Subject: Re: [4.2/4.3 regression] ICE with incompatible types
for ?: with "complex type" conversion
gdr at cs dot tamu dot edu wrote:
> | What's the likely change?
>
> Ban implicit narrowing conversions, in the sense that a round trip will not
> give the same value back.
Which direction is narrowing, between "int" and "float"? (Both have
values unrepresentable in the other, of course.) Would you please give
an example of how this change, together with the new constructors, would
make some program behave differently than the standard says it should?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31780