PR c/25996
commit1c59d5a8cc7ef3ea30e23f6c13440c00b4902e33
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2006 08:23:12 +0000 (26 08:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2006 08:23:12 +0000 (26 08:23 +0000)
treeaab43f6a1e168b21c80aab603cd23a16d448dce7
parentf77459c5ff68b948b4f6d664a5e9a4beb2cc3864
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113269 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr25996.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr25996.c [new file with mode: 0644]