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

2011-09-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6693


Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #2 from Walter Bright  2011-09-26 
23:07:57 PDT ---
https://github.com/D-Programming-Language/dmd/commit/a48007b702870dc7f5915f8aea18f3dc3423d8f3

https://github.com/D-Programming-Language/dmd/commit/9830a15fc2873cb36a6d64980aa018ff98b7c0a7

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


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

2011-09-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6693


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #1 from Don  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: ---