http://d.puremagic.com/issues/show_bug.cgi?id=10072
Summary: Array copy broken for array of pointers
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Kyle Foley <[email protected]> 2013-05-12 17:02:00 EDT ---
windows DMD32 v2.062
code
----
import std.stdio;
int main()
{
int x;
writeln("&x: ", &x);
int*[1] arr;
writeln("arr: ", arr);
arr = [&x];
writeln("arr: ", arr);
int*[1] arr2;
arr2[0] = &x;
writeln("arr2: ", arr2);
arr[] = arr2[];
writeln("arr: ", arr);
return 0;
}
output
------
&x: 18FD58
arr: [null]
arr: [2E1FE0]
arr2: [18FD58]
arr: [18FD60]
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------