← Back to index
|
Original Bugzilla link
Bug 9448 – CTFE ICE indexing block-initialized 2D static array
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-04T02:45:00Z
Last change time
2015-06-09T05:10:41Z
Keywords
CTFE, ice
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0
by clugdbug — 2013-02-04T02:45:48Z
struct S9448 { int array[3][4]; } enum S9448 s9448 = S9448(67); int bug9448() { return s9448.array[1][2]; } static assert(bug9448()==67); dmd: ctfeexpr.c:1559: Expression* ctfeIndex(Loc, Type*, Expression*, uinteger_t): Assertion `e1->op == TOKarrayliteral' failed.