https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119986
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:4a0e88c0c329ee69b13cdf2784c0c88edbca1f9e commit r14-11765-g4a0e88c0c329ee69b13cdf2784c0c88edbca1f9e 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. (cherry picked from commit fceb6022798b587c9111d0241aaff72602dcd626)