[Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 18 02:49:00 GMT 2012


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



More information about the Gcc-bugs mailing list