This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/44311] [C++0x] no error with switch over enum class and integer case


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]