[Bug 52] NRVO not implemented

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sat Jun 1 04:47:43 PDT 2013


http://bugzilla.gdcproject.org/show_bug.cgi?id=52

--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> 2013-06-01 11:47:43 UTC ---
I don't wanna nit pick but that doesn't fix the issue in typecons.d. The test
case is a reduced test for scoped. It's not a check for some optimization, it's
a check that makes sure that the class data is not moved when it's allocated
with scoped!T. This is important as classes may have interior pointers.

I don't know if NRVO is actually part of the D spec. Depending on that we
either have to make sure we don't move the value in gdc or we have to fix
std.typecons.scoped in some other way.

-- 
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the D.gnu mailing list