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++/47704] [4.6 regression] [C++0x] Java-related error message when trying to instantiate a strongly typed enum with new


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


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