diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-04-26 10:23:12 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-04-26 10:23:12 +0200 |
commit | 1562e1fee7c5eec57c05a37c7dca6d4c333dbf7f (patch) | |
tree | aab43f6a1e168b21c80aab603cd23a16d448dce7 /gcc/c-parser.c | |
parent | 21a66e91d04c775dc4a022fb950c4163c593c090 (diff) | |
download | gcc-1562e1fee7c5eec57c05a37c7dca6d4c333dbf7f.zip gcc-1562e1fee7c5eec57c05a37c7dca6d4c333dbf7f.tar.gz gcc-1562e1fee7c5eec57c05a37c7dca6d4c333dbf7f.tar.bz2 |
re PR c/25996 ([gomp] ICE on undefined iteration variable)
PR c/25996
* c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
either decl or init is error_mark_node.
* gcc.dg/gomp/pr25996.c: New test.
* g++.dg/gomp/pr25996.C: New test.
From-SVN: r113269
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 0c90fa8..8cad310 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -7379,7 +7379,7 @@ c_parser_omp_for_loop (c_parser *parser) /* Only bother calling c_finish_omp_for if we havn't already generated an error from the initialization parsing. */ - if (decl != NULL) + if (decl != NULL && decl != error_mark_node && init != error_mark_node) return c_finish_omp_for (loc, decl, init, cond, incr, body, NULL); return NULL; |