This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] Fix PR 19032
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