This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48935] [C++0x] Name lookup error at enum class
- 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, 25 May 2011 15:29:33 +0000
- Subject: [Bug c++/48935] [C++0x] Name lookup error at enum class
- Auto-submitted: auto-generated
- References: <bug-48935-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 15:26:47 UTC ---
Author: jason
Date: Wed May 25 15:26:42 2011
New Revision: 174210
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174210
Log:
PR c++/48935
* parser.c (cp_parser_constructor_declarator_p): Don't check
constructor_name_p for enums.
(cp_parser_diagnose_invalid_type_name): Correct error message.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum16.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/parser.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/error15.C