Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.demangle doesn't handle extern(Objective-C) correctly #17382

Open
dlangBugzillaToGithub opened this issue Feb 3, 2019 · 3 comments
Open
Labels
Arch:x86_64 Issues specific to x86_64 Druntime Specific to druntime OS:Linux P3 Severity:minor

Comments

@dlangBugzillaToGithub
Copy link

Hiroki Noda (@kubo39) reported this on 2019-02-03T23:12:36Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19643

CC List

Description

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
---
@dlangBugzillaToGithub
Copy link
Author

kubo39 commented on 2019-02-04T08:58:38Z

PR 2482: https://github.com/dlang/druntime/pull/2482

@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2020-03-23T03:37:56Z

@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

@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2021-10-03T09:23:09Z

@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

@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86_64 Issues specific to x86_64 Druntime Specific to druntime OS:Linux P3 Severity:minor
Projects
None yet
Development

No branches or pull requests

2 participants