re PR c++/67514 (ICE in omp_add_variable)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Sep 2015 07:31:14 +0000 (09:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Sep 2015 07:31:14 +0000 (09:31 +0200)
commit499c20bbe466b6c71bda3b2e3eee044e9364911c
tree5314dbf71c08c4e14ef596421585661fede2a7e5
parent4e4d2c41b9921ee5b8aa8e9d5874da8786e45559
re PR c++/67514 (ICE in omp_add_variable)

PR c++/67514
* gimplify.c (gimplify_omp_for): For loop SIMD construct, if
iterator is not explicitly determined, but is defined inside
of the combined workshare region, handle it like if it has
DECL_EXPR in OMP_FOR_PRE_BODY.

* g++.dg/gomp/pr67514.C: New test.

From-SVN: r227607
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr67514.C [new file with mode: 0644]