[GHC] #14204: GHC bug - makeStatic: Unresolved static form at line 13, column 14.

GHC ghc-devs at haskell.org
Fri Sep 8 18:39:00 UTC 2017


#14204: GHC bug - makeStatic: Unresolved static form at line 13, column 14.
-------------------------------------+-------------------------------------
        Reporter:  jchia             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Here's a much more minimal example:

 {{{#!hs
 {-# LANGUAGE TemplateHaskell #-}
 module Bug where

 import GHC.StaticPtr
 import Language.Haskell.TH

 main :: IO ()
 main = putStrLn (deRefStaticPtr $(pure (StaticE (LitE (StringL "wat")))))
 }}}

 I don't know too much about the subtleties of static pointers, but perhaps
 the simplest fix would be to add an extra check to see if
 `-XStaticPointers` is enabled before using them in Template Haskell?

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


More information about the ghc-tickets mailing list