https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103590
--- Comment #4 from CVS 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:f838d15641d256e21ffc126c3277b290ed743928 commit r13-1757-gf838d15641d256e21ffc126c3277b290ed743928 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Jul 18 22:34:53 2022 +0200 Fortran: error recovery on invalid array reference of non-array [PR103590] gcc/fortran/ChangeLog: PR fortran/103590 * resolve.cc (find_array_spec): Change function result to bool to enable error recovery. Generate error message for invalid array reference of non-array entity instead of an internal error. (gfc_resolve_ref): Use function result from find_array_spec for error recovery. gcc/testsuite/ChangeLog: PR fortran/103590 * gfortran.dg/associate_54.f90: Adjust. * gfortran.dg/associate_59.f90: New test.