digitalmars.D.bugs - [Issue 6938] New: no implicit copy constructor for struct literal expression
- d-bugmail puremagic.com (27/27) Nov 12 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6938
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: nobody puremagic.com ReportedBy: dawg dawgfoto.de 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: -------
Nov 12 2011