[PATCH] PR fortran/86045 -- test for P=0 in mod(, 0)

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Jun 5 01:01:00 GMT 2018


The attached patch re-arranges the code in gfc_simply_mod().
This allows gfortran to test if the 2nd argument is zero.
Tested on i586-*-freebsd and x86_64-*-freebsd.  OK to commit?

2018-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>

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

2018-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/86045
	* gfortran.dg/pr86045.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr86045.diff
Type: text/x-diff
Size: 2697 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180605/6e66b476/attachment.bin>


More information about the Fortran mailing list