https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122494
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not 100% sure GCC is wrong, though using a non-generic lambda GCC accepts it. There are some things dealing with complete class context and if this is one or not.
