[patch, fortran] Fix for modulo checking similar to PR86045

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

[patch, fortran] Fix for modulo checking similar to PR86045

jerry DeLisle-3
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  <[hidden email]>

        * simplify.c (gfc_simplify_modulo): Re-arrange code to test
  whether 'P' is zero and issue an error if it is.



modulo.diff (3K) Download Attachment
modulo_check.f90 (418 bytes) Download Attachment