https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103607
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:9eec77c0df9e5c67454a2e8f83246104458ba4f0 commit r12-5829-g9eec77c0df9e5c67454a2e8f83246104458ba4f0 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Dec 7 21:34:31 2021 +0100 Fortran: perform array subscript checks only for valid INTEGER bounds gcc/fortran/ChangeLog: PR fortran/103607 * frontend-passes.c (do_subscript): Ensure that array bounds are of type INTEGER before performing checks on array subscripts. gcc/testsuite/ChangeLog: PR fortran/103607 * gfortran.dg/pr103607.f90: New test.