This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]