https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122721
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xry111 at gcc dot gnu.org
--- Comment #5 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
And the C standard has a strict definition of "integer constant expression,"
and it requires a diagnostic if the operand of static_assert isn't one.
Comment 2 is the correct way to go as it's not standard and not limited by the
standard.