Fortran: Fix coarray handling for gfc_dep_resolver [PR99010]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 19 Feb 2021 17:07:26 +0000 (18:07 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 19 Feb 2021 17:07:26 +0000 (18:07 +0100)
commitf86e187e12db14ad1cced26b9f8aafb06498e208
tree2a9a86175927a7508acd3617bbcf50c6e1fa0a73
parent72d91d6cd41f2987339a98c2c64f70b3850f4e0b
Fortran: Fix coarray handling for gfc_dep_resolver [PR99010]

Check failed if identical = false was requested or for -fcoarray=single
if an array ref was for a coindexed scalar.

gcc/fortran/ChangeLog:

PR fortran/99010
* dependency.c (gfc_dep_resolver): Fix coarray handling.

gcc/testsuite/ChangeLog:

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