re PR middle-end/91301 (ICE in omp_add_variable on random access iterator distribute...
authorJakub Jelinek <jakub@redhat.com>
Wed, 31 Jul 2019 07:49:56 +0000 (09:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 31 Jul 2019 07:49:56 +0000 (09:49 +0200)
commitc3ac76aa4078e84d8ca0daf6dab7bc9738f3aa33
treec13a0daa48a9a1a3af2429643d918d7c43b54641
parenta25f3e8efbbc7182fa58c445574848a73856e9b4
re PR middle-end/91301 (ICE in omp_add_variable on random access iterator distribute parallel for private (iterator))

PR middle-end/91301
* gimplify.c (gimplify_omp_for): If for class iterator on
distribute parallel for there is no data sharing clause
on inner_for_stmt, look for private clause on combined
parallel too and if found, move it to inner_for_stmt.

* testsuite/libgomp.c++/for-27.C: New test.

From-SVN: r273922
gcc/ChangeLog
gcc/gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/for-27.C [new file with mode: 0644]