[Bug 52] NRVO not implemented

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Sat Jun 1 06:27:31 PDT 2013


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

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> 2013-06-01 13:27:31 UTC ---
(In reply to comment #2)
> 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.
> 

You mean not copied?


> 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.


It's mentioned only in the glossary... http://dlang.org/glossary.html

-- 
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