re PR c/28649 (Poor error recovery of C parser)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Tue, 15 Aug 2006 16:52:25 +0000 (16:52 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 15 Aug 2006 16:52:25 +0000 (16:52 +0000)
commit2c14ae9a7bf2ee1380fd82d38dbb25a8eb8edebb
tree3becacfcfd14124e3f5ae691909077bb166e199d
parent482e4739cd916f149da266c6a9197f521363697b
re PR c/28649 (Poor error recovery of C parser)

PR c/28649
* c-parser.c (c_parser_compound_statement_nostart): Reset
parser->error after each statement.

* gcc.dg/parse-error-1.c: New test.
* gcc.dg/parse-error-2.c: New test.
* gcc.dg/cpp/digraph2.c: Add error-marker.
* gcc.dg/noncompile/920923-1.c: Likewise.

From-SVN: r116157
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/digraph2.c
gcc/testsuite/gcc.dg/noncompile/920923-1.c
gcc/testsuite/gcc.dg/parse-error-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/parse-error-2.c [new file with mode: 0644]