Fortran: Improve resolution of associate variables. [PR93701].
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 7 Jan 2021 17:34:49 +0000 (17:34 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 7 Jan 2021 17:34:49 +0000 (17:34 +0000)
commit85fb1d7d5f44a81a52015d58ebe67765faabfd35
tree92304526acf7b36f8d0cdcdac67c8606c2bb4d3f
parentdddea6d4d81cac76ff64cde178e2d5f7fe09fb55
Fortran: Improve resolution of associate variables. [PR93701].

2021-01-07  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/93701
* resolve.c (find_array_spec): Put static prototype for
resolve_assoc_var before this function and call for associate
variables.

gcc/testsuite/
PR fortran/93701
* gfortran.dg/associate_54.f90: New test.
* gfortran.dg/associate_55.f90: New test.
* gfortran.dg/associate_56.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/associate_54.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/associate_55.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/associate_56.f90 [new file with mode: 0644]