https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > static_assert is an immediate function context static_assert is NOT an immediate function context sorry for the typo.