← Back to index
|
Original Bugzilla link
Bug 11314 – inline ice with tuple assignment and if/else again
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-21T06:33:00Z
Last change time
2015-06-09T01:31:14Z
Keywords
ice, pull
Assigned to
nobody
Creator
youxkei
Comments
Comment #0
by youxkei — 2013-10-21T06:33:43Z
This bug may be related to the Issue 11223 ----- module bug; struct Tuple(T...) { T values; void opAssign(typeof(this) rhs) { if(0) values[] = rhs.values[]; else assert(0); } } struct S{} void main() { Tuple!S t; t = Tuple!S(S.init); } ----- $ dmd -inline bug.d dmd: glue.c:1281: virtual unsigned int Type::totym(): Assertion `0' failed. -----
Comment #1
by k.hara.pg — 2013-11-04T07:21:32Z
Which version did have worked correctly with? I tested 2.063 to 2.056, but all versions causes same ICE.
Comment #2
by k.hara.pg — 2013-11-04T17:40:32Z
https://github.com/D-Programming-Language/dmd/pull/2717
I think this is not a regression issue against past releases, so change the importance to 'major'.