https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88628
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Why do you think it should fail to compile? The static_assert in your example is a discarded statement.