Bug 3100 – ICE(cast.c) when a struct with members is shared
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-06-27T08:05:00Z
Last change time
2015-06-09T01:27:56Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
robert
Comments
Comment #0 by robert — 2009-06-27T08:05:15Z
When compiling the following code using dmd 2.030:
----
struct Foo
{
int a; // Commenting this out prevents the assertion
}
shared Foo foo;
----
I get the following assertion:
dmd: cast.c:413: virtual MATCH StructLiteralExp::implicitConvTo(Type*): Assertion `t->mod == 4' failed.