[Issue 7353] NRVO not properly working with inferred return type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 15 08:48:46 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7353
--- Comment #3 from Trass3r <mrmocool at gmx.de> 2012-02-15 17:48:44 CET ---
You're right. The third one is an inlining problem.
But there's a different thing I'm now confused about. Why is postblit called
after all?
It's assignment to t, not construction.
See the docs:
struct S { ... }
S s; // default construction of s
S t = s; // t is copy-constructed from s => this(this)
t = s; // t is assigned from s => opAssign
--
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