https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90883
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Marc Glisse from comment #1) > I am surprised the C++ FE doesn't do copy elision in either case. Er, actually, that's obviously because it is a case where the ABI says we return in registers...