]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix some problems blocking associate meta-bug [PR87477]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 2 Jun 2023 07:41:45 +0000 (08:41 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 2 Jun 2023 07:41:45 +0000 (08:41 +0100)
commit3c2eba4b7a2355ed5099e35332388206c484744d
treee5dce6f0cdf6c624dae34c2797412f7ab3da46d7
parenta06b9435b9652ea1b0d30e6fa176c91df314954f
Fortran: Fix some problems blocking associate meta-bug [PR87477]

2023-06-02  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/87477
* parse.cc (parse_associate): Replace the existing evaluation
of the target rank with calls to gfc_resolve_ref and
gfc_expression_rank. Identify untyped target function results
with structure constructors by finding the appropriate derived
type.
* resolve.cc (resolve_symbol): Allow associate variables to be
assumed shape.

gcc/testsuite/
PR fortran/87477
* gfortran.dg/associate_54.f90 : Cope with extra error.

PR fortran/102109
* gfortran.dg/pr102109.f90 : New test.

PR fortran/102112
* gfortran.dg/pr102112.f90 : New test.

PR fortran/102190
* gfortran.dg/pr102190.f90 : New test.

PR fortran/102532
* gfortran.dg/pr102532.f90 : New test.

PR fortran/109948
* gfortran.dg/pr109948.f90 : New test.

PR fortran/99326
* gfortran.dg/pr99326.f90 : New test.
gcc/fortran/parse.cc
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/associate_54.f90
gcc/testsuite/gfortran.dg/pr102109.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr102112.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr102190.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr102532.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr109948.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr99326.f90 [new file with mode: 0644]