PR fortran/77973
commit816a8c6d003ef2425e67de47cb8fcd4722b05536
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Oct 2016 16:21:56 +0000 (26 16:21 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Oct 2016 16:21:56 +0000 (26 16:21 +0000)
tree398e75f9adf7e8e422a97f371c7d60d564affc4c
parentbc57f59b2ccf2317ff65081d3f88733ad3784dbb
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241581 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr77973.f90 [new file with mode: 0644]