This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/19032] modulo generates wrong result for divisor -1
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2004 14:41:21 -0000
- Subject: [Bug libfortran/19032] modulo generates wrong result for divisor -1
- References: <20041216112828.19032.Thomas.Koenig@online.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-12-16 14:41 -------
I checked gfortran against the examples in the standard, and we seem to only get
the case modulo (..., -1) wrong (result should be 0, we print -1)
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|modulo generates wrong |modulo generates wrong
|result |result for divisor -1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032