https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108501
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:771d793df1622a476e1cf8d05f0a6aee350fa56b commit r13-5312-g771d793df1622a476e1cf8d05f0a6aee350fa56b Author: Harald Anlauf <[email protected]> Date: Mon Jan 23 21:19:03 2023 +0100 Fortran: avoid ICE on invalid array subscript triplets [PR108501] gcc/fortran/ChangeLog: PR fortran/108501 * interface.cc (get_expr_storage_size): Check array subscript triplets that we actually have integer values before trying to extract with mpz_get_si. gcc/testsuite/ChangeLog: PR fortran/108501 * gfortran.dg/pr108501.f90: New test.
