https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83793
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Looks like a dup of PR 47226 which is already fixed on trunk, but I don't think the recent overhaul of lambda expression handling is suitable to be backported.