re PR c++/66243 (enum class value is allowed to be initialized by value from other...
authorNathan Sidwell <nathan@gcc.gnu.org>
Sun, 24 May 2015 23:17:58 +0000 (23:17 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sun, 24 May 2015 23:17:58 +0000 (23:17 +0000)
commit6f2d72e0e1038dbd57131bdeee8569c4397ad706
tree31c442197b0ab466c1ed27cd1a65f1b98830d743
parentbce0e38df986d827d49928f0021e4e995e605ad7
re PR c++/66243 (enum class value is allowed to be initialized by value from other enum class)

cp/
PR c++/66243
* decl.c (build_enumerator): Don't silently convert scoped enums.

testsuite/
PR c++/66243
* g++.dg/cpp0x/pr66243.C: New.

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