[GHC] #15730: SCC/HPC/CORE annotation can change the meaning of an expression
GHC
ghc-devs at haskell.org
Tue Oct 9 16:06:05 UTC 2018
#15730: SCC/HPC/CORE annotation can change the meaning of an expression
-------------------------------------+-------------------------------------
Reporter: int-index | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 8.6.1
(Parser) |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Incorrect result
Unknown/Multiple | at runtime
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15730>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list