[Issue 5777] Move semantics require full spec NRVO
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 13 10:42:16 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5777
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2011-04-13 10:38:46 PDT ---
On trunk dmd, this code cannot compile because of fixing bug4499.
----
import std.algorithm;
struct S
{
@disable this(this){}
~this(){}
}
void main()
{
S s1;
S s2 = move(s1);
}
----
--
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