[Issue 6693] [CTFE] Cannot set value to nested AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 26 08:21:19 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6693


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-09-26 08:20:44 PDT ---
The same thing can happen with dotvar or index expressions.
========================
struct S6693 {
    int[int] m; 
}

static assert({

    int[int][int] aaa;
    aaa[3][1] = 4; // AA

    int[int][3] aab;
    aab[2][1] = 4; // static array

    S6693 s;
    s.m[2] = 4;    // dotvar expression

    return 6693;
}() == 6693);

-- 
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