https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106986
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:f5840677c146e4317d7fd53697dda60c616d3e58 commit r10-11004-gf5840677c146e4317d7fd53697dda60c616d3e58 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Sep 20 22:41:48 2022 +0200 Fortran: error recovery on invalid ARRAY argument to FINDLOC [PR106986] gcc/fortran/ChangeLog: PR fortran/106986 * simplify.c (gfc_simplify_findloc): Do not try to simplify intrinsic FINDLOC when the ARRAY argument has a NULL shape. gcc/testsuite/ChangeLog: PR fortran/106986 * gfortran.dg/pr106986.f90: New test. (cherry picked from commit 5976fbf9d5dd9542fcb82eebb2185886fd52d000)