[GHC] #15730: SCC/HPC/CORE annotation can change the meaning of an expression

GHC ghc-devs at haskell.org
Tue Oct 9 16:13: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)                           |
      Resolution:                    |             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:                    |
-------------------------------------+-------------------------------------

Comment (by int-index):

 This is a parsing issue. The first expression is parsed as `(1 / 2) / 2`,
 while the second as `1 / (2 / 2)`. I plan to fix by changing the
 precedence of the pragma.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15730#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list