[Issue 3064] Invalid array operation accepted, generates bad code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 3 04:35:02 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3064
--- Comment #3 from Don <clugdbug at yahoo.com.au> 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: -------
More information about the Digitalmars-d-bugs
mailing list