https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70594
--- Comment #25 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 38245 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38245&action=edit Patch to not discard copies This seems like a minimal fix; does it in fact fix the bug?