[Issue 9448] New: CTFE ICE indexing block-initialized 2D static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 4 02:45:49 PST 2013


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 at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at 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: -------


More information about the Digitalmars-d-bugs mailing list