https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104319
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Though, the cp_parser_next_token_ends_template_argument_p change can't be right. E.g. struct <int N> A{}; A<1>=2> a; is not A<1> =2> a; I bet we can't treat at least >= as terminating template argument, perhaps we could go back to it if tentative parsing with >= didn't work out. In any case, not a GCC 12 material as not a regression.