Bug 18958 – extern(C++) wchar, dchar mangling not correct

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-08T07:50:27Z
Last change time
2019-05-21T10:06:01Z
Keywords
C++, pull
Assigned to
No Owner
Creator
Manu
See also
https://issues.dlang.org/show_bug.cgi?id=18997

Comments

Comment #0 by turkeyman — 2018-06-08T07:50:27Z
Mangling not right for wchar/dchar.
Comment #1 by turkeyman — 2018-06-09T21:11:35Z
wchar_t needs a typedef. It's just an alias, and can't identify it to mangle properly. wchar and dchar should be char16_t, char32_t. DMD doesn't have any C++11 support... so the unit-tests for DMD need special-case handling.
Comment #2 by turkeyman — 2018-06-16T19:59:37Z
Separate issue creates for wchar_t: https://issues.dlang.org/show_bug.cgi?id=18997 PR for this issue here: https://github.com/dlang/dmd/pull/8342 Problem is unit-tests that link against DMC++ fail, because DMC doesn't support utf16/32 char types.
Comment #3 by turkeyman — 2018-06-16T20:06:28Z
Actually, it looks like DMC++ *does* support char16_t/char32_t: https://www.digitalmars.com/ctg/CPP0x-Language-Implementation.html Just need to jig the unit-tests to make sure that's invoked somehow?
Comment #4 by dlang-bot — 2019-05-20T07:36:47Z
@TurkeyMan updated dlang/dmd pull request #8342 "Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct" fixing this issue: - Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct https://github.com/dlang/dmd/pull/8342
Comment #5 by dlang-bot — 2019-05-21T10:06:01Z
dlang/dmd pull request #8342 "Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct" was merged into master: - 7899f891d3edf1623c3ffcdef13b2b0f29fc222e by Manu Evans: Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct https://github.com/dlang/dmd/pull/8342