re PR c/23439 ("f(){for" crashes the C frontend)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Fri, 14 Oct 2005 21:35:47 +0000 (21:35 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Fri, 14 Oct 2005 21:35:47 +0000 (21:35 +0000)
commit24871154f324e06395e8db9038dfc6276cb6d4a7
tree30cd3681486ae4b2227a082c326aee6d97bb53a6
parent3c955a0481f042373c9390273a4560d08455d51f
re PR c/23439 ("f(){for" crashes the C frontend)

PR c/23439
* c-parser.c (c_parser_for_statement): Use location of RID_FOR
to initialize loc.

* gcc.dg/for-1.c: New test.

From-SVN: r105422
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/for-1.c [new file with mode: 0644]