[Issue 4500] scoped moves class after calling the constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 26 04:01:37 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4500



--- Comment #4 from Max Samukha <samukha at voliacable.com> 2010-07-26 04:01:35 PDT ---
But does it specify that the object should not be moved? Currently, the struct
is constructed on the callee's frame and then blitted (moved) to the caller's
frame, though the compiler can optimize the blit out (as GNU C++ does). If this
kind of RVO is not specified, obviously 'scoped' cannot rely on it and will
remain broken even if dmd will eventually be able to apply the optimization.

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