← Back to index
|
Original Bugzilla link
Bug 10483 – ICE(expression.c) .init of struct with block initialized 2D static array
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-26T20:27:00Z
Last change time
2013-11-18T17:19:05Z
Keywords
ice
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0
by clugdbug — 2013-06-26T20:27:12Z
Related to bug 10198 --- struct Bug { int val[3][4]; } struct Outer { Bug p = Bug(67); } int k1 = Outer.init.p.val[2][2]; // ICE(expression.c) void main() { int k2 = Outer.init.p.val[2][2]; // Segfault (backend/type.c) }
Comment #1
by k.hara.pg — 2013-11-16T02:10:52Z
I don't know this is really an issue in D1, but same bug had existed in 2.063 and earlier, and it's fixed in 2.064, by:
https://github.com/D-Programming-Language/dmd/pull/2136
Comment #2
by github-bugzilla — 2013-11-18T08:42:23Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/165ddf9d58bc08a08f551e244a5a2721c2ac09f7
fix Issue 10483 - ICE(expression.c) .init of struct with block initialized 2D static array