On 02/25/2016 10:22 PM, Lars Ingebrigtsen wrote: > Daniel Colascione writes: > >> None of the templates here should be fontified as types. >> >> template >> void foo(T t) >> {} >> >> template<> >> void foo(int x) >> {} >> >> void bar() >> { >> foo(5); >> } > > On the Emacs trunk, I can't see anything immediately wrong about the > fontification of the templates -- they're all fontified with the keyword > face. > > So has this been fixed in the meantime (just five years)? > For me --- empty scratch buffer, c++-mode, emacs -Q, pasting in this example, the name of the second function is fontified as a type, not a function name. In the third function, in the call to foo, foo is also fontified as a type, although it shouldn't be fontified as anything at all.