re PR fortran/77973 (ICE in scan_omp_1_op, at omp-low.c:3841)
authorJakub Jelinek <jakub@redhat.com>
Wed, 26 Oct 2016 16:21:56 +0000 (18:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 26 Oct 2016 16:21:56 +0000 (18:21 +0200)
commit3693a620f010b3c47b23d316f110dad10e1fd5b1
tree398e75f9adf7e8e422a97f371c7d60d564affc4c
parent984fa0eacb8a9e738305bed0deff3f36830bf04b
re PR fortran/77973 (ICE in scan_omp_1_op, at omp-low.c:3841)

PR fortran/77973
* gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
on outer context if any.

* gfortran.dg/gomp/pr77973.f90: New test.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r241581
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr77973.f90 [new file with mode: 0644]