[GHC] #10945: Typed Template Haskell splices broken in HEAD (7.11)

GHC ghc-devs at haskell.org
Thu Oct 8 09:35:22 UTC 2015


#10945: Typed Template Haskell splices broken in HEAD (7.11)
-------------------------------------+-------------------------------------
        Reporter:  jstolarek         |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.0.1
       Component:  Template Haskell  |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
-------------------------------------+-------------------------------------
Changes (by jstolarek):

 * cc: simonpj (added)


Comment:

 The sequence of calls that leads to this panic goes like this:
 `TcRnDriver.tc_rn_src_decls` -> `RnSplice.rnTopSpliceDecls` ->
 `RnSplice.runRnSplice` and in `runRnSplice` we hit `HsTypedSplice`
 alternative in the case that scrutinizes `splice'`. Looking at git blame I
 conjecture that this bug was introduced in
 f46360ed7139ff25741b381647b0a0b6d1000d84 (but would need to bisect to
 verify), which was a fix for #10047.

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


More information about the ghc-tickets mailing list