OSDN Git Service

PR c/28649
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Aug 2006 16:52:25 +0000 (16:52 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Aug 2006 16:52:25 +0000 (16:52 +0000)
commitd038ab63d220d8c3033d0d1da436b1abcf8dc3f7
tree3becacfcfd14124e3f5ae691909077bb166e199d
parent5c19cce4d522acb7ee5dfeaae7c517d25666bdb6
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.

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