[Issue 4881] New: _d_arrayliteralT() called in instances where a blit should suffice

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 17 14:01:45 PDT 2010


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

           Summary: _d_arrayliteralT() called in instances where a blit
                    should suffice
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sean at invisibleduck.org


--- Comment #0 from Sean Kelly <sean at invisibleduck.org> 2010-09-17 14:01:11 PDT ---
The following code will generate a call to _d_arrayliteralT() for the struct
copy operation:


import core.stdc.stdlib;

struct List {}

struct GC
{
    List*[1] free_list;
}

void main()
{
    auto gc = cast(GC*) malloc(GC.sizeof);
    *gc = GC.init; // _d_arrayliteralT() called here
}

-- 
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