[Issue 6938] New: no implicit copy constructor for struct literal expression
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 12 08:50:56 PST 2011
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 at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at 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: -------
More information about the Digitalmars-d-bugs
mailing list