re PR c++/66781 ("confused by earlier errors, bailing out" with wrong enum within...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 21 Oct 2015 22:52:45 +0000 (22:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 21 Oct 2015 22:52:45 +0000 (22:52 +0000)
commitf523e68a231849653c829aab6b0ccaf99137d0a5
tree90b066e13d411947432f609dd047e25734cbe64a
parenta7b2e1845f0c20da4ed6462161f58f706a587d44
re PR c++/66781 ("confused by earlier errors, bailing out" with wrong enum within class)

/cp
2015-10-21  Paolo Carlini  <paolo.carlini@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.carlini@oracle.com>

PR c++/66781
* g++.dg/parse/enum13.C: New.

/cp
2015-10-21  Paolo Carlini  <paolo.carlini@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.carlini@oracle.com>

PR c++/67847
* g++.dg/parse/enum12.C: New.

From-SVN: r229156
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/enum12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/enum13.C [new file with mode: 0644]