https://issues.dlang.org/show_bug.cgi?id=14956 --- Comment #11 from Walter Bright <bugzilla at digitalmars.com> --- I'm not sure this is actually a D compiler problem. If, on the D side, basic_string is aliased to __cxx11::basic_string, it should mangle correctly. This is pointed out in Comment 4. --