https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110905
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-08-04 Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >In my more minimal test case the error is more terse and less clear. The reduced testcase is a different issue and is a dup of bug 85944. In the first testcase provided below if we move the static_assert into main instead of the toplevel, it gets accepted. I think you need to redo your reduction.