[GHC] #15783: Quoting an internal variable causes an error when splicing

GHC ghc-devs at haskell.org
Fri Oct 19 16:44:58 UTC 2018


#15783: Quoting an internal variable causes an error when splicing
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.6.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Curiously, this doesn't happen when loaded into GHCi, only when compiled
 with `--make`.

 Also, if you compile these files one at a time with `-c`, you get
 something... interesting:

 {{{
 $ /opt/ghc/8.6.1/bin/ghc -c B.hs
 $ /opt/ghc/8.6.1/bin/ghc -c A.hs
 ghc: panic! (the 'impossible' happened)
   (GHC version 8.6.1 for x86_64-unknown-linux):
         Loading temp shared object failed: /tmp/ghc6527_0/libghc_1.so:
 undefined symbol:
 templatezmhaskell_LanguageziHaskellziTHziLib_varE_closure
 }}}

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


More information about the ghc-tickets mailing list