[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #3 from Nick Treleaven --- Note that: extern (C) void foo(const(char)[]) {} and `dmd -HC` generates: template struct _d_dynamicArray final { size_t length; T *ptr; ... }; ... extern "C" void foo(_d_dynamicArray< const char > __param_0_); So hopefully this could happen for extern(C++) too. --
[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 Iain Buclaw changed: What|Removed |Added Keywords||ice --
[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 Iain Buclaw changed: What|Removed |Added Priority|P3 |P2 Severity|normal |critical --
[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 Iain Buclaw changed: What|Removed |Added Priority|P1 |P3 --
[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #2 from Dlang Bot --- @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 --
[Issue 18716] [ICE] type const(char)[] can not be mapped to C++
https://issues.dlang.org/show_bug.cgi?id=18716 --- Comment #1 from Jacob Carlborg --- Pull request: https://github.com/dlang/dmd/pull/8120. --