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:55:09 +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 #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