← Back to index
|
Original Bugzilla link
Bug 6159 – [CTFE] ICE(constfold.c) on 'is' with structs
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-06-14T23:56:00Z
Last change time
2015-06-09T05:11:39Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
yebblies
See also
http://d.puremagic.com/issues/show_bug.cgi?id=5633
Comments
Comment #0
by yebblies — 2011-06-14T23:56:56Z
bool bug() { struct A {} return A.init is A.init; } void main() { enum b = bug(); } Crashes dmd1.068 & dmd2.053
Comment #1
by kennytm — 2011-06-15T03:28:24Z
Simiarly, array literals cannot be 'is'-ed either. ---------------------------------- static assert({ return [1] is [1]; }()); ---------------------------------- Assertion failed: (0), function Identity, file constfold.c, line 871. Abort trap ----------------------------------
Comment #2
by yebblies — 2011-06-16T01:50:42Z
*** This issue has been marked as a duplicate of issue 5633 ***