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++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53995

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-18 02:48:21 UTC ---
Author: jason
Date: Wed Jul 18 02:48:17 2012
New Revision: 189599

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189599
Log:
    PR c++/53995
    * decl.c (finish_enum_value_list): Only call
    insert_late_enum_def_into_classtype_sorted_fields in class scope.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/enum9.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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