[Bug c++/53661] [gcc-4.7/4.8 regression] Wrong narrowing conversion warning with -std=c++11
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 14 13:46:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53661
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2012-09-14
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-14 13:46:12 UTC ---
This is a bug. The values of Code (as per 7.2p7) are { 0, 1 }, and int can
represent both values, so the conversion is not a narrowing conversion.
More information about the Gcc-bugs
mailing list