[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
Mon Sep 17 16:42:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53661
--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-17 16:41:49 UTC ---
Author: jason
Date: Mon Sep 17 16:41:41 2012
New Revision: 191398
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191398
Log:
PR c++/53661
* typeck2.c (check_narrowing): Avoid false positives on conversion
from enumeral type.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/init/aggr9.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/typeck2.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list