re PR c/67784 (Incorrect parsing when using declarations in for loops and typedefs)
authorMarek Polacek <polacek@redhat.com>
Thu, 12 Nov 2015 21:07:04 +0000 (21:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 12 Nov 2015 21:07:04 +0000 (21:07 +0000)
commit9be4f715f4db43da3585dfbfaa4545e5b1e07dc1
treed50942375e98f825bc9225724db1d802d970c51b
parent3f9bdfc332ffa04eeb42af53d371eed9410f1320
re PR c/67784 (Incorrect parsing when using declarations in for loops and typedefs)

PR c/67784
* c-parser.c (c_parser_for_statement): Reclassify the token in
a correct scope.

* gcc.dg/pr67784-1.c: New test.
* gcc.dg/pr67784-2.c: New test.

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