[Issue 3064] Invalid array operation accepted, generates bad code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 3 04:08:27 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3064
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |bearophile_hugs at eml.cc
Resolution|FIXED |
--- Comment #2 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list