re PR fortran/62131 (OpenMP: Subobject of an allocatable array not allowed in OMP...
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Aug 2014 10:23:13 +0000 (12:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Aug 2014 10:23:13 +0000 (12:23 +0200)
commit7258a2576581f90c5ba8399e6f6ba6c36a16ff86
tree9b4e0aa1f7dec4be8ba7da062efc4bd34dccd18b
parent2c274197e9fb0fdc9c1aa4c6bfa089c72cca3658
re PR fortran/62131 (OpenMP: Subobject of an allocatable array not allowed in OMP ATOMIC)

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.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r214010
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr62131.f90 [new file with mode: 0644]