This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jul 2012 02:48:21 +0000
- Subject: [Bug c++/53995] [4.7/4.8 Regression] Overload resolution fails with enum argument, says <anonymous enum>
- Auto-submitted: auto-generated
- References: <bug-53995-4@http.gcc.gnu.org/bugzilla/>
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