digitalmars.D.bugs - [Issue 13870] New: [ICE] shared or immutable types can not be mapped
- via Digitalmars-d-bugs (26/26) Dec 16 2014 https://issues.dlang.org/show_bug.cgi?id=13870
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: nobody puremagic.com Reporter: redballoon36 gmail.com 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. --
Dec 16 2014