← Back to index
|
Original Bugzilla link
Bug 7068 – copying array of pointers calls memset instead of memcpy with -d
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-12-05T19:56:00Z
Last change time
2014-08-22T08:04:27Z
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2011-12-05T19:56:23Z
// REQUIRED_ARGS: -d void main() { auto darray1 = new int*[](10); foreach(ref v; darray1) v = new int; auto darray2 = new int*[](10); darray2[] = darray1[]; // calls memset instead of memcpy foreach(i; 0 .. 10) assert(darray1[i] == darray2[i]); } --- Happens only with '-d' flag.
Comment #1
by code — 2013-04-03T19:43:32Z
I can still reproduce this with 2.062, even without '-d', but it seems to be fixed in master.
Comment #2
by github-bugzilla — 2014-07-12T05:21:01Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/9d6f4db34c426253892ba21d8e8728ce327867f4
Add regression test for bug 7068.
https://github.com/D-Programming-Language/dmd/commit/813ce694514adc8234ebb9cb7503e70774ef54ca
Merge pull request #3746 from Safety0ff/test7068 Add regression test for bug 7068.
Comment #3
by github-bugzilla — 2014-07-16T03:52:21Z
Commit pushed to 2.066 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/a694824566a027308c3a32c8bf9c9bc7bc9f84ea
Merge pull request #3746 from Safety0ff/test7068 Add regression test for bug 7068.
Comment #4
by github-bugzilla — 2014-07-16T09:16:35Z
Commits pushed to master at
https://github.com/D-Programming-Language/druntime
https://github.com/D-Programming-Language/druntime/commit/57bb1a7d8f2a8395b1e385c1d513000245c785ac
Remove Bug 7068 work around.
https://github.com/D-Programming-Language/druntime/commit/e3074a433d4461a4291c24a6eef87d266293fe2b
Merge pull request #875 from Safety0ff/nomo7068 Remove Bug 7068 work around.
Comment #5
by github-bugzilla — 2014-08-22T08:04:27Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/a694824566a027308c3a32c8bf9c9bc7bc9f84ea
Merge pull request #3746 from Safety0ff/test7068