[Issue 3064] Invalid array operation accepted, generates bad code
http://d.puremagic.com/issues/show_bug.cgi?id=3064 Don changed: What|Removed |Added Status|NEW |RESOLVED CC||clugd...@yahoo.com.au Resolution||FIXED --- Comment #1 from Don 2010-05-03 01:39:52 PDT --- Fixed DMD1.059 and 2.044 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3064] Invalid array operation accepted, generates bad code
http://d.puremagic.com/issues/show_bug.cgi?id=3064 bearophile_h...@eml.cc changed: What|Removed |Added Status|RESOLVED|REOPENED CC||bearophile_h...@eml.cc Resolution|FIXED | --- Comment #2 from bearophile_h...@eml.cc 2010-05-03 04:08:26 PDT --- Reopened, because this wrong code compiles still with dmd v2.044, the bug persists: void main() { int[] a = [1,2]; int[] b = [1,2]; a[] += b; assert (b[0] == 1); assert (b[1] == 2); assert (a[0] == 2); assert (a[1] == 4); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3064] Invalid array operation accepted, generates bad code
http://d.puremagic.com/issues/show_bug.cgi?id=3064 --- Comment #3 from Don 2010-05-03 04:34:59 PDT --- (In reply to comment #2) > Reopened, because this wrong code compiles still with dmd v2.044, the bug > persists: > > void main() { > int[] a = [1,2]; > int[] b = [1,2]; > a[] += b; > assert (b[0] == 1); > assert (b[1] == 2); > assert (a[0] == 2); > assert (a[1] == 4); > } Oops, it's fixed only in my personal copy, not in the official DMD. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3064] Invalid array operation accepted, generates bad code
http://d.puremagic.com/issues/show_bug.cgi?id=3064 Walter Bright changed: What|Removed |Added Status|REOPENED|RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright 2010-05-31 19:03:32 PDT --- http://www.dsource.org/projects/dmd/changeset/509 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3064] Invalid array operation accepted, generates bad code
https://issues.dlang.org/show_bug.cgi?id=3064 Walter Bright changed: What|Removed |Added Version|1.045 |D1 --