]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: array subreferences and components of derived types [PR119986]
authorHarald Anlauf <anlauf@gmx.de>
Sat, 3 May 2025 18:35:57 +0000 (20:35 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 4 May 2025 18:17:01 +0000 (20:17 +0200)
commitfceb6022798b587c9111d0241aaff72602dcd626
tree5dbb29b8a706b2c17fcf37280976e6b724444410
parentc2962684e393007d8de59d37b8ac57b0b4843808
Fortran: array subreferences and components of derived types [PR119986]

PR fortran/119986

gcc/fortran/ChangeLog:

* expr.cc (is_subref_array): When searching for array references,
do not terminate early so that inquiry references to complex
components work.
* primary.cc (gfc_variable_attr): A substring reference can refer
to either a scalar or array character variable.  Adjust search
accordingly.

gcc/testsuite/ChangeLog:

* gfortran.dg/actual_array_subref.f90: New test.
gcc/fortran/expr.cc
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/actual_array_subref.f90 [new file with mode: 0644]