[Bug c/28488] incorrect warning says signed and unsigned type in conditional expression

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jul 26 11:47:00 GMT 2006



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-07-26 11:47 -------
No, you are incorrect.  Anyways the warnings about ?: are to make sure that you
know that they are different signedness, which might change the behavior
slightly than what you are expecting.
unsigned int baz = 0;
signed int bar = -1;
baz = bar;

This is a different issue and I think is being fixed by the -Wcoercion work.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28488



More information about the Gcc-bugs mailing list