floor (0/0) :: Int is different with -O0 and -O1
This program:
main = print (floor (0/0) :: Int)
prints a different result with -O0:
0
and -O1:
-9223372036854775808
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |