https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62131
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 15 10:24:08 2014 New Revision: 214011 URL: https://gcc.gnu.org/viewcvs?rev=214011&root=gcc&view=rev Log: PR fortran/62131 * openmp.c (resolve_omp_atomic): Only complain if code->expr1's attr is allocatable, rather than whenever var->attr.allocatable. * gfortran.dg/gomp/pr62131.f90: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/gomp/pr62131.f90 Modified: branches/gcc-4_9-branch/gcc/fortran/ChangeLog branches/gcc-4_9-branch/gcc/fortran/openmp.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog