Re: [patch, fortran] Fix ICE on invalid with DO steps

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [patch, fortran] Fix ICE on invalid with DO steps

Steve Kargl
On Sun, Sep 15, 2019 at 03:55:55PM +0200, Thomas Koenig wrote:
>
> Regression-tested.  OK for all affected branches (trunk, 9 and 8)?
>

OK with minor spelling fix.

> +  sgn = mpz_cmp_ui (dl->ext.iterator->step->value.integer, 0);
> +  /* This can happen, but then the error has been
> +     reported previusly.  */

s/previusly/previously

Do you it gfortran should skip the front-end optimization pass
if error(s) have already been reported?  On entry ito this pass,
you could test for the error count and simply return.

int wcnt, ecnt;
gfc_get_errors (&wcnt, &ecnt)
if (ecnt > 0)
   return;

--
Steve