https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119764
--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> --- The thread at https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680971.html has a patch. Note that there are potential ABI concerns as this changes the size and contents of the lambdas.