parser.c (cp_parser_class_head): Improve error recovery upon extra qualification...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 21 Oct 2019 19:29:41 +0000 (19:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 21 Oct 2019 19:29:41 +0000 (19:29 +0000)
commit79cd6c7b905ca9390bc1e7c87c259a5a18cefa81
tree4c70fff8023627a84ce3887ab08492d416c7df86
parent5b884e9400741569ee385f0de4590c1730aa600c
parser.c (cp_parser_class_head): Improve error recovery upon extra qualification error.

/cp
2019-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (cp_parser_class_head): Improve error recovery upon
extra qualification error.

/testsuite
2019-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/parse/qualified2.C: Tighten dg-error directive.
* g++.old-deja/g++.other/decl5.C: Don't expect redundant error.

From-SVN: r277268
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/qualified2.C
gcc/testsuite/g++.old-deja/g++.other/decl5.C