[Issue 6283] [CTFE][Regression 2.054] Failed to assign to AA using a constness-changed array as key
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 22 01:24:00 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6283
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from kennytm at gmail.com 2011-07-22 01:23:57 PDT ---
Not yet fixed in these 2 slight variants:
Test case 2:
-----------------------------------
static assert({
immutable p = "pp";
int[string] pieces = [p: 0];
pieces["qq"] = 1;
return true;
}());
-----------------------------------
x.d(6): Error: cannot evaluate delegate pure nothrow bool()
....
-----------------------------------
Test case 3:
-----------------------------------
static assert({
immutable renames = [0: "pp"];
int[string] pieces;
pieces[true ? renames[0] : "qq"] = 1;
pieces["anything"] = 1;
return true;
}());
-----------------------------------
x.d(7): Error: cannot evaluate delegate pure nothrow bool()
....
-----------------------------------
--
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