https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93364
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:f32d02e223d49a5d9db295969da9d2c04dc9d086 commit r9-8516-gf32d02e223d49a5d9db295969da9d2c04dc9d086 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Apr 20 14:45:10 2020 +0200 PR fortran/93364 - ICE in gfc_set_array_spec, at fortran/array.c:879 Backport from mainline. 2020-04-20 Harald Anlauf <anl...@gmx.de> Add missing check in gfc_set_array_spec for sum of rank and corank to not exceed GFC_MAX_DIMENSIONS. PR fortran/93364 * array.c (gfc_set_array_spec): Check for sum of rank and corank not exceeding GFC_MAX_DIMENSIONS. PR fortran/93364 * gfortran.dg/pr93364.f90: New test.