[GHC] #1037: primRepHint:VoidRep

GHC trac at galois.com
Mon Dec 4 06:53:10 EST 2006


#1037: primRepHint:VoidRep
-------------------------------+--------------------------------------------
    Reporter:  igloo           |       Owner:         
        Type:  bug             |      Status:  new    
    Priority:  normal          |   Milestone:  6.8    
   Component:  Compiler (FFI)  |     Version:  6.6    
    Severity:  normal          |    Keywords:         
  Difficulty:  Unknown         |    Testcase:         
Architecture:  Unknown         |          Os:  Unknown
-------------------------------+--------------------------------------------
Compiling this module:

 {{{
 module Q where

 import GHC.Base

 type World__ = State# RealWorld

 foreign import ccall unsafe "putwchar" f :: World__ -> Char# -> World__
 }}}

 with `ghc -fglasgow-exts -O Q.hs` panics:

 {{{
 ghc-6.6: panic! (the 'impossible' happened)
   (GHC version 6.6 for x86_64-unknown-linux):
         primRepHint:VoidRep
 }}}

 It looks like we need a !VoidHint if we want to support this.

 Reported by John Meacham in http://www.haskell.org/pipermail/glasgow-
 haskell-users/2006-November/011658.html

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


More information about the Glasgow-haskell-bugs mailing list