https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35849
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Mon Jul 4 19:14:54 2016 New Revision: 237993 URL: https://gcc.gnu.org/viewcvs?rev=237993&root=gcc&view=rev Log: 2016-07-04 Jerry DeLisle <jvdeli...@gcc.gnu.org> Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/35849 * simplify.c (gfc_simplify_ishftc): Check that absolute value of SHIFT is less than or equal to SIZE. * gfortran.dg: pr35849.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr35849.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/simplify.c trunk/gcc/testsuite/ChangeLog