Bug 10072 – Array copy broken for array of pointers

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-05-12T14:02:00Z
Last change time
2013-05-13T06:51:28Z
Assigned to
nobody
Creator
kyfolee

Comments

Comment #0 by kyfolee — 2013-05-12T14:02:00Z
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]
Comment #1 by andrej.mitrovich — 2013-05-13T06:51:28Z
Fixed in git-head, Issue 9539 was the report. *** This issue has been marked as a duplicate of issue 9539 ***