https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107278 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Iirc there was a defect report against the c++ standard here and you should just foo instead of foo<T>