[Issue 13870] New: [ICE] shared or immutable types can not be mapped to C++ (immutable(char))
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Dec 16 18:00:00 PST 2014
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 at puremagic.com
Reporter: redballoon36 at 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.
--
More information about the Digitalmars-d-bugs
mailing list