https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91550
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Wed Sep 18 17:39:33 2019 New Revision: 275892 URL: https://gcc.gnu.org/viewcvs?rev=275892&root=gcc&view=rev Log: 2019-09-18 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk PR fortran/91550 * frontend-passes.c (do_subscript): If step equals zero, a previuos error has been reported; do nothing in this case. * resolve.c (gfc_resolve_iterator): Move error checking after type conversion. 2019-09-18 Thomas Koenig <tkoe...@gcc.gnu.org> Backport from trunk PR fortran/91550 * gfortran.dg/do_subscript_6.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/do_subscript_6.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/frontend-passes.c branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/testsuite/ChangeLog