https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- clang rejects it while both ICC and MSVC accepts it as being valid. 6.7.10 Static assertions ... Semantics ... If the value of the constant expression compares unequal to 0, the declaration has no effect. --- There is no identifiers defined so the constraint of Iteration statements is not violated as far as I can tell. So I do think this is a clang bug so closing as invalid.