[Issue 18716] [ICE] type const(char)[] can not be mapped to C++

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 23 10:09:57 UTC 2020


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

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

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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@jacob-carlborg updated dlang/dmd pull request #8120 "Fix issue 18716: type
`const(char)[]` can not be mapped to C++" fixing this issue:

- Fix issue 18716: type `const(char)[]` can not be mapped to C++

  D arrays don't have any corresponding type in C++. Instead we mangle
  it as a templated struct with the name `__dslice`, i.e.
  `struct __dslice(T)`, where `T` is the element type of the array. For
  an array of ints it would be mangled as the following type:
  `__dslice!int`.

https://github.com/dlang/dmd/pull/8120

--


More information about the Digitalmars-d-bugs mailing list