https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105265
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #6) > But not fixed on gcc-11 by the r11-8715 backport for PR100838, suggesting > there was an earlier change on trunk that affects it. Perhaps that's because of (from the r11-8715 commit message): For GCC 11, limit the changes to -fno-elide-constructors