https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119986
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:fceb6022798b587c9111d0241aaff72602dcd626 commit r16-376-gfceb6022798b587c9111d0241aaff72602dcd626 Author: Harald Anlauf <anl...@gmx.de> Date: Sat May 3 20:35:57 2025 +0200 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.