[Issue 16650] New: Wrong mangling for extern(C++) with posix stat_t

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 29 22:11:47 PDT 2016


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

          Issue ID: 16650
           Summary: Wrong mangling for extern(C++) with posix stat_t
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: Hexagonalstar64 at gmail.com

---
import core.sys.posix.sys.stat;
extern(C++):
void myFunc(stat_t*){}
---
Doesn't match the c++ mangling
---
#include <sys/stat.h>

void myFunc(struct stat*){}
---
D mangles myFunc as "_Z6myFuncP6stat_t"
C++ mangles myFunc as "_Z6myFuncP4stat"

--


More information about the Digitalmars-d-bugs mailing list