[Bug c++/57176] copy elision with function arguments passed by value

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Mon May 6 12:23:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57176

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2013-05-06 12:23:02 UTC ---
Unless I'm misunderstanding your suggestion I think that a compiler is not
allowed to apply copy-elision here, because that case was explicitly excluded
from 12.8 p31 by

http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1148


More information about the Gcc-bugs mailing list