re PR c++/44311 ([C++0x] no error with switch over enum class and integer case)
authorJason Merrill <jason@redhat.com>
Wed, 25 May 2011 20:02:41 +0000 (16:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 May 2011 20:02:41 +0000 (16:02 -0400)
commitde69121325ce8e05adb106c87acaeadf1bba61e0
treef31e62ba5d84a403470febb8740f225d5c3578b9
parentf03a54024372021a572dd23893982ef2ba0e941e
re PR c++/44311 ([C++0x] no error with switch over enum class and integer case)

PR c++/44311
* decl.c (case_conversion): New.
(finish_case_label): Use it.

From-SVN: r174231
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-switch2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/enum15.C [new file with mode: 0644]