SCC/HPC/CORE annotation can change the meaning of an expression
Consider this GHCi session:
Prelude> 1 / 2 / 2
0.25
Prelude> 1 / {-# SCC ann #-} 2 / 2
1.0
Adding an SCC annotation changed the meaning of the expression.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.6.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | high |
| Resolution | Unresolved |
| Component | Compiler (Parser) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |