[Bug c++/44311] [C++0x] no error with switch over enum class and integer case
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 25 20:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44311
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 20:30:26 UTC ---
Author: jason
Date: Wed May 25 20:30:21 2011
New Revision: 174237
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174237
Log:
PR c++/44311
* decl.c (case_conversion): New.
(finish_case_label): Use it.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-switch2.C
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum15.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list