www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19643] New: core.demangle doesn't handle extern(Objective-C)

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 puremagic.com
          Reporter: kubo39 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
---

--
Feb 03