-O flag produces faulty code
The -O flag generates incorrect code in both 6.8.2 and 6.9.
I tested it myself on 6.8.2 - The -O flag causes the program to enter a 100% CPU endless loop
Heffalump also tested it on 6.9 - The -O flag causes it to segfault
Attached is a tgz file containing the code (and the input).
ghc --make -o obk Main.hs ; obk -> works
ghc --make -o obk -O Main.hs ; obk -> fails
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.9 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |