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: [email protected]
Reporter: [email protected]
---
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"
--