[GHC] #9274: GHC panic with UnliftedFFITypes+CApiFFI
GHC
ghc-devs at haskell.org
Sun Jul 6 18:26:45 UTC 2014
#9274: GHC panic with UnliftedFFITypes+CApiFFI
---------------------------------------+-----------------------------------
Reporter: hvr | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time crash | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
---------------------------------------+-----------------------------------
Comment (by hvr):
Here's a simpler example (stolen from `Data.ByteString.Short.Internal`
which uses `ccall`):
{{{#!hs
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE UnliftedFFITypes #-}
foreign import capi unsafe "string.h memcmp"
c_memcmp_ByteArray :: ByteArray# -> ByteArray# -> CSize -> IO CInt
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9274#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list