https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83650
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Tue Jan 2 23:03:11 2018 New Revision: 256113 URL: https://gcc.gnu.org/viewcvs?rev=256113&root=gcc&view=rev Log: 2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from 7-branch PR fortran/83650 * simplify.c (gfc_simplify_cshift): Correct contition for negative shifts. 2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from 7-branch PR fortran/83650 * gfortran.dg/simplify_cshift_1.f90: Correct condition. Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/simplify.c branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/testsuite/gfortran.dg/simplify_cshift_1.f90