[Issue 22014] Wrong MSVC++ mangling of wchar_t

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 16 09:55:50 UTC 2023


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

--- Comment #3 from kinke <kinke at gmx.net> ---
(In reply to elpenguino+D from comment #2)
> The mangler does recognize a __c_wchar_t type, but that isn't documented or
> defined anywhere in dmd and requires a definition similar to `enum
> __c_wchar_t : wchar` or dchar in user code. unfortunately,
> core.stdcpp.string's basic_string won't work with this, causing std::wstring
> support to be just out of reach

The magic `__c_wchar_t` enum could be put into core.stdcpp.config like the
others, and then (existing) alias `core.stdc.stddef.wchar_t` could alias to it.
Wouldn't that suffice?

--


More information about the Digitalmars-d-bugs mailing list