Issue 19643 - core.demangle doesn't handle extern(Objective-C) correctly
Summary: core.demangle doesn't handle extern(Objective-C) correctly
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86_64 Linux
: P3 minor
Assignee: No Owner
URL:
Keywords: objc, pull
Depends on:
Blocks:
 
Reported: 2019-02-03 23:12 UTC by Hiroki Noda
Modified: 2024-12-07 13:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Hiroki Noda 2019-02-03 23:12:36 UTC
dmd and ddemangle are install via `install.sh install dmd-2.084.0`.

---
(dmd-2.084.0)$ cat objc.d
extern (Objective-C) void fooObjC(T)(T x) { }

extern (D) void fooD(T)(T x) { }

void main()
{
    fooD(1);
    fooObjC(1);
}
(dmd-2.084.0)$ dmd -g objc.d
(dmd-2.084.0)$ nm objc| grep foo| ddemangle
0000000000032e78 W pure nothrow @nogc @safe void objc.fooD!(int).fooD(int)
0000000000032e88 W _D4objc__T7fooObjCTiZQlYNaNbNiNfiZv
---
Comment 1 Hiroki Noda 2019-02-04 08:58:38 UTC
PR 2482: https://github.com/dlang/druntime/pull/2482
Comment 2 Dlang Bot 2020-03-23 03:37:56 UTC
@kubo39 updated dlang/druntime pull request #2482 "FIX Issue 19643 - add missing Objective-C function calling convention" fixing this issue:

- FIX Issue 19643 - add missing Objective-C function calling convention

https://github.com/dlang/druntime/pull/2482
Comment 3 Dlang Bot 2021-10-03 09:23:09 UTC
@kubo39 updated dlang/druntime pull request #2977 "Fix Issue 20640 - LDC: AddressSanitizer failing to catch SIGSEGV in unittest" fixing this issue:

- FIX Issue 19643 - add missing Objective-C function calling convention

https://github.com/dlang/druntime/pull/2977
Comment 4 dlangBugzillaToGithub 2024-12-07 13:39:15 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17382

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB