"Weird Number" crashes GHCi (and Hugs) when integer-divided by -1
(-2147483648::Int) div (-1::Int)
This expression triggers a crash in GHCi on Windows XP, using the 6.6 binary distribution. It generates zero on the PowerPC binary. This also affects HUGS.
-2147483648 is the "weird number" (largest 32-bit negative) which has no positive counterpart representable in 32 bits.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.6 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |