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.