https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67847
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Wed Oct 21 22:52:45 2015 New Revision: 229156 URL: https://gcc.gnu.org/viewcvs?rev=229156&root=gcc&view=rev Log: /cp 2015-10-21 Paolo Carlini <paolo.carl...@oracle.com> PR c++/66781 * parser.c (cp_parser_enum_specifier): Upon error_at set nested_name_specifier to error_mark_node; improve error message. /testsuite 2015-10-21 Paolo Carlini <paolo.carl...@oracle.com> PR c++/66781 * g++.dg/parse/enum13.C: New. /cp 2015-10-21 Paolo Carlini <paolo.carl...@oracle.com> PR c++/67847 * parser.c (cp_parser_enum_specifier): Reject a nested_name_specifier which doesn't name a class or namespace. /testsuite 2015-10-21 Paolo Carlini <paolo.carl...@oracle.com> PR c++/67847 * g++.dg/parse/enum12.C: New. Added: trunk/gcc/testsuite/g++.dg/parse/enum12.C trunk/gcc/testsuite/g++.dg/parse/enum13.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog