re PR c/35444 (ICE with invalid function declaration)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 13 Feb 2009 01:00:24 +0000 (01:00 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 13 Feb 2009 01:00:24 +0000 (01:00 +0000)
commitf007042e20e61d8e9b6472b47bb4005bc91baec0
treeaaac573acd9b2594848c4d9b343bb20a655dc0f7
parentf3eb9681f02a415755730a84f4a4174fbf2e2b27
re PR c/35444 (ICE with invalid function declaration)

PR c/35444
* c-parser.c (c_parser_parms_list_declarator): Discard pending
sizes on syntax error after some arguments have been parsed.

testsuite:
* gcc.dg/noncompile/pr35444-1.c, gcc.dg/noncompile/pr35444-2.c:
New tests.

From-SVN: r144149
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr35444-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/noncompile/pr35444-2.c [new file with mode: 0644]