[Bug c++/47704] [4.6 regression] [C++0x] Java-related error message when trying to instantiate a strongly typed enum with new
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 16 09:17:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47704
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-02-16 09:08:51 UTC ---
Author: jakub
Date: Wed Feb 16 09:08:48 2011
New Revision: 170209
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170209
Log:
PR c++/47704
* cp-tree.h (ENUM_FIXED_UNDERLYING_TYPE_P): Use TYPE_LANG_FLAG_5
instead of TYPE_LANG_FLAG_3.
* pt.c (lookup_template_class): Copy over
ENUM_FIXED_UNDERLYING_TYPE_P.
* g++.dg/cpp0x/enum8.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list