[Issue 17748] New: extern(C) do nothing on struct methods

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 12 06:58:36 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17748

          Issue ID: 17748
           Summary: extern(C) do nothing on struct methods
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

struct S
{
   extern(C) void foo(){}
}

DMD generates D mangled name instead of C's `_foo`.

--


More information about the Digitalmars-d-bugs mailing list