[Patch] PR fortran/93499 - ICE on division by zero in declaration statements
Harald Anlauf
anlauf@gmx.de
Sat May 9 18:52:55 GMT 2020
Hi,
the attached should be mostly self-explaining. Division by zero handling
appeared to be incomplete. It was not dealt with properly when occurring
in declaration statements. We now try to handle this.
OK for mainline?
Thanks,
Harald
PR fortran/93499 - ICE on division by zero in declaration statements
Division by zero in declaration statements could sometimes
generate NULL pointers being passed around that lead to ICEs.
gcc/fortran/ChangeLog:
2020-05-09 Harald Anlauf <anlauf@gmx.de>
PR fortran/93499
* arith.c (gfc_divide): Catch division by zero.
(eval_intrinsic_f3): Safeguard for NULL operands.
gcc/testsuite/ChangeLog:
2020-05-09 Harald Anlauf <anlauf@gmx.de>
PR fortran/93499
* gfortran.dg/pr93499.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr93499.patch
Type: text/x-patch
Size: 1889 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200509/21f8a07d/attachment.bin>
More information about the Gcc-patches
mailing list