[Bug c++/94537] Possibly wrong code with mandatory copy elision and 'this' pointer resolution
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 9 18:32:45 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94537
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
CC| |jason at gcc dot gnu.org
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
As described in my patch for PR 94034, these testcases are not guaranteed to
work because A is trivially copyable and therefore the implementation can
introduce an extra temporary on return.
More information about the Gcc-bugs
mailing list