[gfortran] Fix PR 19032

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Dec 27 17:17:00 GMT 2004


Paul Brook wrote:
>>2004-12-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
>>
>> PR fortran/19032
>> * trans-intrinsic.c (gfc_conv_intrinsic_mod): Build FLOOR_MOD_EXPR
>> for MODULO of integers.  Move 'if (modulo)' conditional into switch.
> 
> 
> Ok.
> Do you also have a testcase?

Yes, I added the testcase included in the followup, and I also amended the
existing test gfortran.fortran-torture/execute/intrinsic_mod_ulo.f90 to test
the case of unit divisor.

For the record: after confirming with Paul, I committed the patch which I
posted in the followup which also fixed MODULO of REALs.

- Tobi



More information about the Fortran mailing list