https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94746
Alejandro Colomar <alx at kernel dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #4 from Alejandro Colomar <alx at kernel dot org> --- A static_assert(3) is indeed the right solution. As Arseny said, this is by design, so I'll close it as WONTFIX.