www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17748] New: extern(C) do nothing on struct methods

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

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

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

--
Aug 12