digitalmars.D.bugs - [Issue 8332] New: std.Array.Range.opIndexOpAssign does not compile
- d-bugmail puremagic.com (51/51) Jul 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8332
- d-bugmail puremagic.com (11/11) Jul 31 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8332
- d-bugmail puremagic.com (9/9) Sep 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8332
- d-bugmail puremagic.com (11/11) Sep 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8332
http://d.puremagic.com/issues/show_bug.cgi?id=8332 Summary: std.Array.Range.opIndexOpAssign does not compile Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: monarchdodra gmail.com Test code: ---- import std.container; void main() { Array!int myList; myList.length = 2; auto range = myList[]; myList[0] += 1; range[0] += 1; //Doesn't compile } ---- ..\..\src\phobos\std\container.d(1758): Error: expression this._outer of type Array!(int) does not have a boolean value ..\..\src\phobos\std\container.d(1758): Error: undefined identifier '_payload' ..\..\src\phobos\std\container.d(1759): Error: undefined identifier '_payload' main.d(10): Error: template instance std.container.Array!(int).Array.Range.opIndexOpAssign!("+") error instantiating ---- Fault is here: ----phobos / std / container.d l. void opIndexOpAssign(string op)(T value, size_t i) { enforce(_outer && _a + i < _b && _b <= _outer._payload.length); mixin("_outer._payload.ptr[_a + i] "~op~"= value;"); } ---- Suggest changing to: ---- void opIndexOpAssign(string op)(T value, size_t i) { enforce(_a + i < _b && _b <= _outer._data._payload.length); mixin("_outer._data._payload.ptr[_a + i] "~op~"= value;"); } ---- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 01 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8332 monarchdodra gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nobody puremagic.com |monarchdodra gmail.com Being corrected in pull: https://github.com/D-Programming-Language/phobos/pull/716 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 31 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8332 Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/caad7c5017a30d7d5afbe8ae7a7692d7cdd47b5e Fixes for issues 8332 and 8333 (try 2) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8332 monarchdodra gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 17 2012