You need to sign in or sign up before continuing.
foreign import stdcall "&foo" doesn't work
Importing a label with the stdcall calling convention fails to remember the stdcall attribute and add the appropriate '@n' suffix to the label on Windows. e.g.
foreign import stdcall "&foo" foo :: FunPtr (CInt -> IO ())
should result in a reference to "foo@4", but doesn't. This breaks the Win32 library, which does something like this for genericWndProc in Graphics/Win32/Window.hsc.
Somewhat related to to #1288 (closed) .
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |