Hello world, I have committed the patch below as obvious to fix the same bug on gcc-7 that my recent patch fixed on trunk.
2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/83650 * simplify.c (gfc_simplify_cshift): Correct contition for negative shifts. 2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/83650 * gfortran.dg/simplify_cshift_1.f90: Correct condition. Regards Thomas
Index: fortran/ChangeLog =================================================================== --- fortran/ChangeLog (Revision 256084) +++ fortran/ChangeLog (Arbeitskopie) @@ -1,3 +1,9 @@ +2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> + + PR fortran/83650 + * simplify.c (gfc_simplify_cshift): Correct contition for + negative shifts. + 2017-12-28 Steven G. Kargl <ka...@gcc.gnu.org> PR Fortran/83548 Index: testsuite/ChangeLog =================================================================== --- testsuite/ChangeLog (Revision 256084) +++ testsuite/ChangeLog (Arbeitskopie) @@ -1,3 +1,8 @@ +2018-01-02 Thomas Koenig <tkoe...@gcc.gnu.org> + + PR fortran/83650 + * gfortran.dg/simplify_cshift_1.f90: Correct condition. + 2018-01-01 Jakub Jelinek <ja...@redhat.com> PR middle-end/83608