re PR c++/52987 (bogus expected ; before for undeclared type)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 23 Jul 2015 10:11:48 +0000 (10:11 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 23 Jul 2015 10:11:48 +0000 (10:11 +0000)
commit25f05e7bf142ad370a0da6681a6971ce565dc5c2
tree0a40a5c43bd3f71bca72f5667af3f0cab6688b94
parent7bed1d3d811b3e609593c4ff45ec5c554fba0143
re PR c++/52987 (bogus expected ; before for undeclared type)

/cp
2015-07-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52987
* parser.c (cp_parser_simple_declaration): Robustify check avoiding
redundant error messages.

/testsuite
2015-07-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52987
* g++.dg/parse/error57.C: New.
* g++.dg/expr/string-2.C: Update.

From-SVN: r226097
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/string-2.C
gcc/testsuite/g++.dg/parse/error57.C [new file with mode: 0644]