[Issue 19643] New: core.demangle doesn't handle extern(Objective-C) correctly
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 3 23:12:36 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19643
Issue ID: 19643
Summary: core.demangle doesn't handle extern(Objective-C)
correctly
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: kubo39 at gmail.com
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
---
--
More information about the Digitalmars-d-bugs
mailing list