[Issue 14956] C++ Mangling incompatible with C++11

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 10 15:05:04 UTC 2017


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

--- Comment #13 from Sahmi Soulaïman (سليمان السهمي) <sahmi.soulaimane at gmail.com> ---
(In reply to Walter Bright from comment #12)
> The code is neither C++ nor D. Please provide an accurate code example, what
> it mangles to, and what it should mangle to. Thanks!

example:
---
#include <string>

std::string toString(char* s)
{
    return s;
}
---

The function "toString" above returns `std::string`, thus mangles to:
"_Z8toStringB5cxx11Pc", which is in demangled form:
"toString[abi:cxx11](char*)". The question is: how to emulate the "[abi:cxx11]"
part of the mangling in d? Thanks!

--


More information about the Digitalmars-d-bugs mailing list