https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71705
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 7 12:49:04 2016 New Revision: 238102 URL: https://gcc.gnu.org/viewcvs?rev=238102&root=gcc&view=rev Log: Backported from mainline 2016-06-30 Jakub Jelinek <ja...@redhat.com> PR fortran/71705 * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on decls in to/from clauses. * gfortran.dg/gomp/pr71705.f90: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/pr71705.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-openmp.c branches/gcc-5-branch/gcc/testsuite/ChangeLog