[GHC] #867: Integer arithmetic gives the wrong answer on amd64/Linux
GHC
trac at galois.com
Tue Aug 15 16:46:52 EDT 2006
#867: Integer arithmetic gives the wrong answer on amd64/Linux
-------------------------------+--------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.1
Severity: normal | Keywords:
Os: Linux | Difficulty: Unknown
Architecture: x86_64 (amd64) |
-------------------------------+--------------------------------------------
On x86 I get:
{{{
Prelude> reverse $ take 10 $ reverse $ show $ sum [ x ^ x | x <- [1..1000]
]
"9110846700"
}}}
which is correct, but on amd64/Linux I get:
{{{
Prelude> reverse $ take 10 $ reverse $ show $ sum [ x ^ x | x <- [1..1000]
]
"0612504812"
}}}
Both ghci's above are 6.4.1, but I also see it with the HEAD (a few days
old).
Seen on Debian, Gentoo and rpath distributions.
Thanks
Ian
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/867>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list