Fortran: Fix Array dependency with local coarrays [PR98913]
authorTobias Burnus <tobias@codesourcery.com>
Wed, 3 Feb 2021 09:34:18 +0000 (10:34 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 3 Feb 2021 09:34:18 +0000 (10:34 +0100)
commite3f9f80bfa9e58a90dfe75631921c78660342daf
treeee620165059b1f46968460ba8a94be68c872dd15
parent1b06fcb0c9ec1110f4d6eb1dacf9c41222346f04
Fortran: Fix Array dependency with local coarrays [PR98913]

gcc/fortran/ChangeLog:

PR fortran/98913
* dependency.c (gfc_dep_resolver): Treat local access
to coarrays like any array access in dependency analysis.

gcc/testsuite/ChangeLog:

PR fortran/98913
* gfortran.dg/coarray/array_temporary.f90: New test.
gcc/fortran/dependency.c
gcc/testsuite/gfortran.dg/coarray/array_temporary.f90 [new file with mode: 0644]