This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49577] [C++0x] narrowing conversion not rejected
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Jun 2011 12:49:26 +0000
- Subject: [Bug c++/49577] [C++0x] narrowing conversion not rejected
- Auto-submitted: auto-generated
- References: <bug-49577-4@http.gcc.gnu.org/bugzilla/>
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