https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104765
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |54367 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note we reject statement expressions in this case: void g() { struct f { void operator()(char c = ({return 5;'c';})){}; }; } (Note clang does not which is a bug in clang and clang also ICEs in the lambas case too). Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 [Bug 54367] [meta-bug] lambda expressions