Ticket #2276 (closed merge: fixed)
foreign import stdcall "&foo" doesn't work
| Reported by: | simonmar | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.8.3 |
| Component: | Compiler | Version: | 6.8.2 |
| Keywords: | Cc: | ||
| Operating System: | Windows | Architecture: | x86 |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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 .
Change History
Note: See
TracTickets for help on using
tickets.
