https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68983
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 37245 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37245&action=edit possible patch Would this be an appropriate fix? It seems that if the source is a ref we won't copy anything onto the stack.