re PR c++/51496 (FAIL: libgomp.c++/for-2.C * (test for excess errors))
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Dec 2011 18:55:06 +0000 (19:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Dec 2011 18:55:06 +0000 (19:55 +0100)
commit007db66070dd022993de34ab2c9f880b4d5678cb
treea57323d9fb21bb4b9a243709225a2a653c407055
parentfe4bf59fb63c95ee07aa8a62a4ecf0a93e8d6083
re PR c++/51496 (FAIL: libgomp.c++/for-2.C  *  (test for excess errors))

PR c++/51496
* parser.c (cp_parser_omp_for_loop): When determining whether
to use cp_parser_omp_for_incr or cp_parser_expression and when
calling cp_parser_omp_for_incr, use real_decl instead of decl.

From-SVN: r182257
gcc/cp/ChangeLog
gcc/cp/parser.c