https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77666
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:29:49 2017 New Revision: 248613 URL: https://gcc.gnu.org/viewcvs?rev=248613&root=gcc&view=rev Log: Backported from mainline 2016-09-27 Jakub Jelinek <ja...@redhat.com> PR fortran/77666 * trans-openmp.c (gfc_omp_private_outer_ref): Return true even for references to allocatable arrays. * gfortran.dg/gomp/pr77666.f90: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/pr77666.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