GCC accepts this ill-formed code: void f(int n) { static_assert((+n, true), ""); } This is invalid because it reads the variable 'n', whose value is not known within the constant expression.
Still accepted with gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) (GCC)