← Back to index
|
Original Bugzilla link
Bug 10217 – (D1 only) ICE(root.c) with nested struct.init.tupleof in CTFE
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2013-05-31T01:33:49Z
Last change time
2019-07-16T04:02:18Z
Keywords
CTFE, ice
Assigned to
No Owner
Creator
Don
Comments
Comment #0
by clugdbug — 2013-05-31T01:33:49Z
This is CTFE version of 9315 ------------- bool bug10217() { struct S { int i; void bar() {} } auto yyy = S.init.tupleof[$-1]; assert(!yyy); return 1; } static assert(bug10217()); --- dmd: root/root.h:462: TYPE*& Array<TYPE>::operator[](size_t) [with TYPE = Expression, size_t = long unsigned int]: Assertion `index < dim' failed. Aborted
Comment #1
by github-bugzilla — 2013-06-24T23:36:04Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/fa616c5fcd9ed755f09e213fdc70a63803a2c075
Fix bug 10217 ICE(root.c) with nested struct.init.tupleof in CTFE CTFE version of bug 9315, almost exactly the same fix. If a nested struct has no initialized hidden pointer, set it to null to match the runtime behaviour.
Comment #2
by bugzilla — 2013-06-24T23:36:29Z
Fixed for D2.
Comment #3
by bugzilla — 2013-06-24T23:36:52Z
https://github.com/D-Programming-Language/dmd/pull/2107
Comment #4
by k.hara.pg — 2013-10-02T01:16:46Z
Changed to D1 issue.
Comment #5
by k.hara.pg — 2013-11-24T20:05:53Z
D1 is not supported anymore.
Comment #6
by bugzilla — 2013-11-24T22:59:27Z
Please don't mark these WONTFIX yet. If you don't want to see them, just don't search on "Version: D1"