--
What|Removed |Added
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-27 17:13
---
Fixed.
--
What|Removed |Added
Status|ASSIGNED|RESOLVED
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-27
17:13 ---
Subject: Bug 19032
CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED] 2004-12-27 17:13:07
Modified files:
gcc/fortran: ChangeLog trans-intrinsic.c
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-20 19:56
---
Updated patch here: http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01563.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032
--
What|Removed |Added
AssignedTo|unassigned at gcc dot gnu |tobi at gcc dot gnu dot org
|dot org |
Status|NEW
--- Additional Comments From Thomas dot Koenig at online dot de 2004-12-17
14:27 ---
I've adjusted the subject.
I've had a look at the real modulo and mod case,
but didn't quite understand it - it appeared to
be overly complicated, compared to the straightforward
formula a - floor(a/b)*
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-17 01:18
---
A patch for integers is here:
http://gcc.gnu.org/ml/fortran/2004-12/msg00171.html
I had guessed so Thomas, but I hoped that someone else would complete the fix
:-)
--
What|Removed
--- Additional Comments From Thomas dot Koenig at online dot de 2004-12-16
22:40 ---
Reals are also broken:
$ cat mod-real.f90
program main
real :: a,b
a = 2.0
b = -1.0
print *,modulo(a,b)
end program main
$ gfortran mod-real.f90
$ ./a.out
-1.00
--
http://gcc.gnu.org/b
--- Additional Comments From tobi at gcc dot gnu dot org 2004-12-16 14:42
---
(In reply to comment #1)
> The second result is correct, the first wrong.
It's the other way round, as might be obvious from comment #2
Sorry.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19032
--- 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
---
10 matches
Mail list logo