https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66089
--- Comment #2 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 35513 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35513&action=edit Patch v2 A patch that tries to avoid copies if possible.