https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88164
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-02-03 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Summary|Copy initialization of |Lambda is allowed to |function argument not |capture any constexpr |performed inside lambda |variable without specifying |when the argument is a |any captures |constexpr block scope | |variable. | --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Though I don't know 100% this is invalid code.