https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102899
--- Comment #4 from friedkeenan at protonmail dot com --- (In reply to Jakub Jelinek from comment #3) > Just compile your testcase with additional > -Dconstexpr= -Dconsteval= -D'static_assert(x)=' > to see how it is compiled, there is that infinite recursion with all > compilers I've tried. The difference being that that's runtime which does not have the same heap safety guarantees as constant evaluation. The recursive error, while technically compliant with the standard afaik, is not that great from a figuring out what the issue is perspective.