https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86521
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 45952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45952&action=edit patch to prefer copy elision This implements that, but I'm going to hold off a bit before committing it.