[GHC] #13710: panic with boot and -jX

GHC ghc-devs at haskell.org
Fri May 19 01:12:42 UTC 2017


#13710: panic with boot and -jX
-------------------------------------+-------------------------------------
        Reporter:  pacak             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1-rc2
      Resolution:                    |             Keywords:  hs-boot
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by ezyang):

 This is a record wild cards problem. Here is a further reduced test case:

 {{{
 -- A.hs
 {-# LANGUAGE RecordWildCards #-}
 module A where
 import B
 data E = MkE
 p (H{..}) = ()

 -- A.hs-boot
 module A ( E ) where
 data E

 -- B.hs
 module B where
 import {-# SOURCE #-} A
 data H = H { h :: E }
 }}}

 Probably what is happening is that record wildcards is forcing the thunk
 for E during renaming, which is far before it is ready. Workaround should
 be to replace the record wildcard with explicitly listed out fields.

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


More information about the ghc-tickets mailing list