https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- Created attachment 51732 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51732&action=edit rough patch that folds calls to std::move/forward Does the attached rough patch help?