https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116802
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You only looked at the first error message and thought that. I looked at: /opt/compiler-explorer/gcc-trunk-20240921/include/c++/15.0.0/bits/locale_facets.h:2626:49: error: expected unqualified-id before '(' token [-Wtemplate-body] 2626 | { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); } To see where the problem would be.