PR c/20402
commitb6903102ce608e816c2f0acff81a4c2cd4bfcc6d
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Mar 2005 01:09:47 +0000 (13 01:09 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Mar 2005 01:09:47 +0000 (13 01:09 +0000)
tree627cf4b5bf6a4b1aea79cf236c48e8ffb01f8e77
parent2be14d8b4c2974628dc7594f5d85b86c405e7d28
PR c/20402
* c-parser.c (c_parser_struct_or_union_specifier): Don't fall
through into call to parser_xref_tag after parse error.
(c_parser_struct_declaration): Consistently return NULL_TREE on
error.

testsuite:
* gcc.dg/noncompile/920923-1.c: Detail expected diagnostics for
new parser.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96363 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/920923-1.c