[GHC] #3467: GHC HEAD panics trying to splice a type

GHC trac at galois.com
Thu Aug 27 08:10:55 EDT 2009


#3467: GHC HEAD panics trying to splice a type
-----------------------------+----------------------------------------------
Reporter:  awson             |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.11              |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 This:
 {{{
 {-# LANGUAGE TemplateHaskell #-}

 module Test where

 import Language.Haskell.TH
 import Foreign

 sizeq :: Name -> Q Exp
 sizeq n = [| sizeOf (undefined :: $(conT n)) |]
 }}}
 leads to
 {{{
 ghc.EXE: panic! (the 'impossible' happened)
   (GHC version 6.11.20090823 for i386-unknown-mingw32):
         kcSpliceType
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3467>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list