[Bug middle-end/102209] NRVO for function parameters

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 8 12:25:52 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102209

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard does not permit copy elision for function parameters. The call to
the move constructor is observable, and cannot be elided.


More information about the Gcc-bugs mailing list