Int64 division buggy on a 32-bit installation
This is with GHC 7.4.1, running on Linux, 32 bits:
Prelude> maxBound :: Int
2147483647
Prelude> :m Data.Int
Prelude Data.Int> [5 `div` (minBound+k::Int64) | k <- [0 .. 10]]
[0,0,1,1,1,-1,-1,-1,-1,-1,-1]
Expected value: Last expression should evaluate to:
[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |