re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c:2652)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 15 Sep 2019 14:57:48 +0000 (14:57 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 15 Sep 2019 14:57:48 +0000 (14:57 +0000)
commit3e0679c8d4e22f00614a52cbd2b33780f3f1a911
tree8d885cf64ce2b13a250921c758286cace55da118
parentda903a1610ba94d9309ab3438bd8a6391a7e77fb
re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c:2652)

2019-09-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

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-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/91550
* gfortran.dg/do_subscript_6.f90: New test.

From-SVN: r275729
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/do_subscript_6.f90 [new file with mode: 0644]