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

           Summary: Copy postblit constructor this(this) not called for
                    members
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: and...@metalanguage.com


Consider this code:

struct A
{
    this(this)
    {
        writeln("A's copy");
    }
}

struct B
{
    A member;
    this(this)
    {
        writeln("B's copy");
    }
}

void main(string[] args)
{
    B b1;
    B b2 = b1;
}

It only prints "B's copy" which means that the A member of B has not been
properly copied. There are many bugs related to this(this), but this is a
blocker.


-- 

Reply via email to