https://issues.dlang.org/show_bug.cgi?id=13870
Issue ID: 13870
Summary: [ICE] shared or immutable types can not be mapped to
C++ (immutable(char))
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: ice
Severity: critical
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
The following code produces an ICE:
extern(C++) void func(immutable (char)* ch);
void main()
{
func("hello");
}
The output is;Error: ICE: shared or immutable types can not be mapped to C++
(immutable(char))
dmd: cppmangle.c:444: virtual void CppMangleVisitor::visit(Type*): Assertion
`0' failed.
--