[Bug c++/49577] [C++0x] narrowing conversion not rejected

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 29 12:55:00 GMT 2011


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-29 12:54:54 UTC ---
And the following line in the same example:

signed int si1 =
  { (unsigned int)-1 }; // error: narrows



More information about the Gcc-bugs mailing list