Fortran: reject bad SIZE argument while simplifying ISHFTC [PR106911]
authorHarald Anlauf <anlauf@gmx.de>
Sat, 10 Dec 2022 21:05:15 +0000 (22:05 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 10 Dec 2022 21:05:15 +0000 (22:05 +0100)
commitae4438537fbc2ed04f3b0fb32d4e02b0ed6977a1
tree3354cf55ca8d797df65f0ad8ca1d0316d3b72e8a
parent7676235f690e624b7ed41a22b22ce8ccfac1492f
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.
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/pr106911.f90 [new file with mode: 0644]