http://d.puremagic.com/issues/show_bug.cgi?id=7068

           Summary: copying array of pointers calls memset instead of
                    memcpy with -d
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2011-12-05 19:56:23 PST ---
// 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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to