https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106911
--- Comment #5 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:ae4438537fbc2ed04f3b0fb32d4e02b0ed6977a1 commit r13-4595-gae4438537fbc2ed04f3b0fb32d4e02b0ed6977a1 Author: Harald Anlauf <anl...@gmx.de> Date: Sat Dec 10 22:05:15 2022 +0100 Fortran: reject bad SIZE argument while simplifying ISHFTC [PR106911] gcc/fortran/ChangeLog: PR fortran/106911 * simplify.cc (gfc_simplify_ishftc): If the SIZE argument is known to be outside the allowed range, terminate simplification. gcc/testsuite/ChangeLog: PR fortran/106911 * gfortran.dg/pr106911.f90: New test.