[Bug c++/122494] gcc rejects valid C++ codes with generic lambda inside a static_assert inside a class, not completed class

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 30 17:23:15 GMT 2025


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.


More information about the Gcc-bugs mailing list