[GHC] #14624: HEAD panic in ghc:DsForeign: toCType
GHC
ghc-devs at haskell.org
Tue Jan 2 01:34:11 UTC 2018
#14624: HEAD panic in ghc:DsForeign: toCType
-------------------------------------+-------------------------------------
Reporter: tianxiaogu | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.2
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash or panic | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):
* cc: hvr (added)
Comment:
That being said, I'm not terribly familiar with what requirements the
`capi` calling convention imposes on its argument and result types. Is
there a specification for this somewhere? All I found was
[https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/ffi-
chap.html?highlight=capiffi#the-capi-calling-convention this terse
section] of the users' guide on `CApiFFI`, which doesn't formalize what
types are accepted, much less what should happen if an //incorrect// type
is provided, as what appears to be happening here.
cc'ing hvr, who might have some thoughts on this.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14624#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list