re PR fortran/35849 ("wrong" line shown in error message for parameter)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 4 Jul 2016 19:14:54 +0000 (19:14 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 4 Jul 2016 19:14:54 +0000 (19:14 +0000)
commitc20f6223a41539918368677b4a79ad6c1ae674bb
treec202f4a8340895897d03c80249167115c4475359
parent2a5537c3e20ffae1e35923a063d42a3f21e47727
re PR fortran/35849 ("wrong" line shown in error message for parameter)

2016-07-04  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Steven G. Kargl  <kargl@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.

Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>
From-SVN: r237993
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr35849.f90 [new file with mode: 0644]