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

           Summary: no implicit copy constructor for struct literal
                    expression
           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-11-12 08:50:16 PST ---
struct S
{
  int a;
}

auto s1 = S();
S s2 = s1; // works
auto s3 = S(s1); // doesn't work, but should be equivalent to the above


------------

The compiler should rewrite that case to use copy constructor
and postblit.

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

Reply via email to