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

mark at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 7 16:46:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list