https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53298
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Mark Eggleston <markeggles...@gcc.gnu.org>: https://gcc.gnu.org/g:c2e99836a2751b6d970ca6e50c1a368f5d2a2375 commit r11-2398-gc2e99836a2751b6d970ca6e50c1a368f5d2a2375 Author: Mark Eggleston <markeggles...@gcc.gnu.org> Date: Fri Jul 17 14:22:48 2020 +0100 Fortran : ICE in gfc_conv_scalarized_array_ref PR53298 When an array of characters is an argument to a subroutine and is accessed using (:)(1:) an ICE occurs. The upper bound of the substring does not have an expression and such should not have a Scalarization State structure added to the Scalarization State chain. 2020-07-29 Mark Eggleston <markeggles...@gcc.gnu.org> gcc/fortran/ PR fortran/53298 * trans-array.c (gfc_walk_array_ref): If ref->ss.end is set call gfc_get_scalar_ss. 2020-07-29 Mark Eggleston <markeggles...@gcc.gnu.org> gcc/testsuite/ PR fortran/53298 * gfortran.dg/pr53298.f90: New test.