#2014: getLinkDeps panic
----------------------+-----------------------------------------------------
 Reporter:  fons      |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  high      |      Milestone:  6.8.3  
Component:  Compiler  |        Version:  6.8.2  
 Severity:  blocker   |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  Unknown
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by igloo):

 Here's a small testcase:

 A.hs-boot:
 {{{
 module A where
 }}}

 A.hs:
 {{{
 module A where
 }}}

 B.hs:
 {{{
 module B where

 import {-# SOURCE #-} A ()
 import Language.Haskell.TH

 expQ :: ExpQ
 expQ = [| () |]
 }}}

 C.hs:
 {{{
 module C where

 import B

 foo :: a
 foo = undefined
   where second = $( expQ )
 }}}

 Gives:
 {{{
 ghc -Wall -fglasgow-exts -fth -c A.hs-boot
 ghc -Wall -fglasgow-exts -fth -c A.hs
 ghc -Wall -fglasgow-exts -fth -c B.hs
 ghc -Wall -fglasgow-exts -fth -c C.hs
 Loading package ghc-prim ... linking ... done.
 Loading package integer ... linking ... done.
 Loading package base ... linking ... done.
 ghc-6.9.20080511: panic! (the 'impossible' happened)
   (GHC version 6.9.20080511 for i386-unknown-linux):
         getLinkDeps No iface for main:A

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2014#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to