simplify.c (gfc_simplify_modulo): Re-arrange code to test whether 'P' is zero and...
commit53dede15de584056ebf6eb4f8d57aa365d9c0e7b
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 3 Sep 2018 18:38:20 +0000 (3 18:38 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 3 Sep 2018 18:38:20 +0000 (3 18:38 +0000)
tree70f8bd51ec0da448da82c87376abc014eafe0de5
parenta5e8b0607431fdefa0dba2bcf477a1695ac5d227
simplify.c (gfc_simplify_modulo): Re-arrange code to test whether 'P' is zero and issue an error if it is.

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.
* gfortran.dg/modulo_check: New test.

From-SVN: r264070
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/modulo_check.f90 [new file with mode: 0644]