https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|DR 625 forbids "auto" being |invalid template argument |used in template argument |causes the type to become |and parser fails to issue |int which confuses the rest |correct error message for |of the diagnostic |it | Last reconfirmed| |2022-01-19 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I can't find the bug right now but I think there is another bug which complains about how we use int for the type after an invalid template argument.