re PR middle-end/67521 (ICE when OpenMP loop expressions mention the IV)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Sep 2015 07:32:54 +0000 (09:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Sep 2015 07:32:54 +0000 (09:32 +0200)
commitcbdfbde871992d05f9fbd6118196f5eeadfc91e6
tree73b8b7ec10420ebc8087e34c4750882b8b166950
parent2ee10f818d0ae2d421ff6df19923acf509d71721
re PR middle-end/67521 (ICE when OpenMP loop expressions mention the IV)

PR middle-end/67521
* gimplify.c (gimplify_omp_for): Don't call omp_add_variable
if decl is already in outer->variables.

* c-c++-common/gomp/pr67521.c: New test.

From-SVN: r227609
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr67521.c [new file with mode: 0644]