re PR c++/48935 ([C++0x] Name lookup error at enum class)
authorJason Merrill <jason@redhat.com>
Wed, 25 May 2011 14:35:17 +0000 (10:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 May 2011 14:35:17 +0000 (10:35 -0400)
commitb60f3408700c850bec15b0735f3955213b384b8a
tree8fe43cf69392d16bc57e702206141b381ed446dd
parentf41349a3d41a8a882cd3119c3a094947369c8806
re PR c++/48935 ([C++0x] Name lookup error at enum class)

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.

From-SVN: r174205
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum16.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/error15.C