[GHC] #1680: Attempting to do foreign import with unboxed tuple
return type causes GHC panic
GHC
trac at galois.com
Tue Sep 11 00:34:05 EDT 2007
#1680: Attempting to do foreign import with unboxed tuple return type causes GHC
panic
-----------------------------+----------------------------------------------
Reporter: sorear | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (FFI) | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Os: Linux
Testcase: | Architecture: x86
-----------------------------+----------------------------------------------
{{{
stefan at stefans:/tmp$ ghc -ddump-asm -fglasgow-exts X.hs
ghc-6.7.20070829: panic! (the 'impossible' happened)
(GHC version 6.7.20070829 for i386-unknown-linux):
resultWrapper
(# base:GHC.Prim.Int#{(w) tc 3G},
base:GHC.Prim.Int#{(w) tc 3G},
base:GHC.Prim.Int#{(w) tc 3G} #)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
stefan at stefans:/tmp$ cat X.hs
module X where
import GHC.Exts
foreign import ccall unsafe "foo" foo :: Int# -> Int# -> Int# -> (# Int# ,
Int# , Int# #)
stefan at stefans:/tmp$
}}}
6.6.1 and 6.4.2 are also affected.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1680>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list