Summary: no implicit copy constructor for struct literal
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to