[patch, fortran] Fix for modulo checking similar to PR86045
Jerry DeLisle
jvdelisle@charter.net
Mon Sep 3 15:13:00 GMT 2018
Hi all,
Similar to Steve's fix of 'mod' checking for 86045, the attached patch
fixes an ICE in 'modulo' when P = 0.
Mark pointed this out and greatly assisted with the patch. I have
regression tested and plan to commit to trunk, 8, and 7 so that we are
in sync with the 'mod' patch.
If no objections, later today I will commit with the test case.
Regards,
Jerry
2018-09-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* simplify.c (gfc_simplify_modulo): Re-arrange code to test
whether 'P' is zero and issue an error if it is.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modulo.diff
Type: text/x-patch
Size: 3533 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180903/6e3c8f9f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modulo_check.f90
Type: text/x-fortran
Size: 410 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180903/6e3c8f9f/attachment-0001.bin>
More information about the Fortran
mailing list