https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100716
--- Comment #2 from Matthias Kretz (Vir) <kretz at kde dot org> --- I'd like to revise my opinion above. dump_template_decl should never print the template parameter list of functions. I.e. it should be 'template<class U> f()' not 'template<class U> f<U>()'. Because it's also declared without the template parameter list, independent of whether the template parameter is deducible from the function arguments or not. That means the -fno-pretty-templates output needs to be fixed and the 'T = T' part needs to disappear.