https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118398
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > lambda are not considered an immediate context which is why func1 fails for > GCC and clang. See PR 103760 for that.