Bug 14570 – Compiler crash relating to extern(C++)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-05-11T05:28:06Z
Last change time
2018-05-22T05:13:34Z
Assigned to
No Owner
Creator
Manu
Comments
Comment #0 by turkeyman — 2015-05-11T05:28:06Z
extern(C++):
struct X
{
__gshared immutable(int)[4] s;
}
Emits the error:
2>Error: Internal Compiler Error: shared or immutable types can not be mapped to C++ (immutable(int[5]))
2>Assertion failure: '0' on line 947 in file 'cppmangle.c'
And then crashes with popup "abnormal program termination"
Error is reasonable, but shouldn't crash.