This one looks OK Thomas

Cheers,

Jerry

On 12/22/19 7:28 AM, Thomas Koenig wrote:
Hello world,

here is an update for the fix for PR 92961, which also takes care
of the second test case in the PR (included in the first one).

The patch itself should be clear enough - make sure that there
is a MATCH_ERROR on matching an array spec which contains 0/(0).
Rather than pass around information several calls deep, I chose
to use a global variable.

Regression-tested. OK for trunk?

(Only a few bugs to fix to be at least below 900 bugs at the end
of the year, by the way - we are at 389 submitted bugs vs. 461 closed,
which is not bad).

Regards

     Thomas

2019-12-22  Thomas Koenig  <tkoe...@gcc.gnu.org>

     PR fortran/92961
     * gfortran.h (gfc_seen_div0): Add declaration.
     * arith.h (gfc_seen_div0): Add definition.
     (eval_intrinsic): For integer division by zero, set gfc_seen_div0.
     * decl.c (variable_decl):  If resolution resp. simplification
     fails for array spec and a division of zero error has been
     seen, return MATCH_ERROR.

2019-12-22  Thomas Koenig  <tkoe...@gcc.gnu.org>

     PR fortran/92961
     * gfortran.dg/arith_divide_2.f90: New test.

Reply via email to