https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93835
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Mark Eggleston <markeggles...@gcc.gnu.org>: https://gcc.gnu.org/g:ba740092516cd759ac69e89d7f502a51d8bec19a commit r9-8271-gba740092516cd759ac69e89d7f502a51d8bec19a Author: Mark Eggleston <markeggles...@gcc.gnu.org> Date: Mon Feb 24 15:53:24 2020 +0000 fortran: ICE using SHAPE with FINDLOC PR93835 Backported from mainline 2020-02-24 Mark Eggleston <markeggles...@gcc.gnu.org> PR fortran/93835 * simplify.c (simplify_findloc_nodim) : Fix whitespace issues. (gfc_simplify_shape) : Create and initialise one shape value for the result expression. Set shape value with the rank of the source array. PR fortran/93835 * gfortran.dg/pr77351.f90 : Check for one error instead of two. * gfortran.dg/pr93835.f08 : New test.