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
- 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:30:19 -0000
- Subject: [Bug libfortran/19032] modulo generates wrong result
- 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:30 -------
The second result is correct, the first wrong.
The difference results from the fact that the first statement is evaluated by
gfortran's constant folding pass, whereas the second is evaluated in generated code.
In other words, the code generation for modulo is wrong.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-16 14:30:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032