February 04, 2013 [Issue 9448] New: CTFE ICE indexing block-initialized 2D static array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9448 Summary: CTFE ICE indexing block-initialized 2D static array Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2013-02-04 02:45:48 PST --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation