https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104512
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > constexpr works but consteval does not. > > Also I notice ICC rejects the consteval version but accepts the constexpr > one. This gives the hint that both MSVC and clang are incorrect really. EDG also implements correctly static_assert not being an immediate function context. So closing as invalid.