https://issues.dlang.org/show_bug.cgi?id=14951 --- Comment #2 from Rainer Schuetze <r.sagitario at gmx.de> --- >extern(C++) ClassDeclaration* foo(); This is wrong, should not have the '*': >extern(C++) ClassDeclaration foo(); --