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++/49577] [C++0x] narrowing conversion not rejected


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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-29 12:49:07 UTC ---
G++ also accepts this, which the example in [dcl.init.list]/7 says is an error:

unsigned int ui1 = {-1}; // error: narrows


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