Thread overview
[Issue 18958] extern(C++) wchar, dchar mangling not correct
Jun 08, 2018
Manu
Jun 09, 2018
Manu
Jun 16, 2018
Manu
Jun 16, 2018
Manu
Jul 26, 2018
Mike Franklin
May 20, 2019
Dlang Bot
May 21, 2019
Dlang Bot
June 08, 2018
https://issues.dlang.org/show_bug.cgi?id=18958

Manu <turkeyman@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |C++
           Hardware|x86                         |All
                 OS|Windows                     |All
           Severity|enhancement                 |normal

--
June 09, 2018
https://issues.dlang.org/show_bug.cgi?id=18958

--- Comment #1 from Manu <turkeyman@gmail.com> ---
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.

--
June 16, 2018
https://issues.dlang.org/show_bug.cgi?id=18958

--- Comment #2 from Manu <turkeyman@gmail.com> ---
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.

--
June 16, 2018
https://issues.dlang.org/show_bug.cgi?id=18958

--- Comment #3 from Manu <turkeyman@gmail.com> ---
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?

--
July 26, 2018
https://issues.dlang.org/show_bug.cgi?id=18958

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=18997

--
May 20, 2019
https://issues.dlang.org/show_bug.cgi?id=18958

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@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

--
May 21, 2019
https://issues.dlang.org/show_bug.cgi?id=18958

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
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

--