https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88377
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 10:13:07 2019 New Revision: 267700 URL: https://gcc.gnu.org/viewcvs?rev=267700&root=gcc&view=rev Log: Backported from mainline 2018-12-07 Jakub Jelinek <ja...@redhat.com> PR fortran/88377 * trans-openmp.c (gfc_omp_clause_default_ctor, gfc_omp_clause_copy_ctor, gfc_omp_clause_assign_op, gfc_omp_clause_linear_ctor, gfc_omp_clause_dtor): Only consider GFC_DECL_GET_SCALAR_ALLOCATABLE vars as scalar allocatables if they have pointer type. * gfortran.dg/gomp/pr88377.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/gomp/pr88377.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-openmp.c branches/gcc-8-branch/gcc/testsuite/ChangeLog