/cp
commitddb5dd6d66acc530e31dfda32129ca3c9c1ad931
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 10:11:48 +0000 (23 10:11 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Jul 2015 10:11:48 +0000 (23 10:11 +0000)
tree0a40a5c43bd3f71bca72f5667af3f0cab6688b94
parent24882f081964f262ee887bf6d3dde155f4f612aa
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226097 138bc75d-0d04-0410-961f-82ee72b054a4
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]