Don't compare template params by recursing into isSameEntity; instead do it explicitly as part of comparing the template decl.
For function templates we need to resolve overloaded templated functions, by comparing the templated decls' types.
As the function prototype's param types can be dependent, and as those dependent types never compare equal across different template decls, do a string comparison of those.
Because that's slow, do this only as a last resort, after everything else (number and kind of template parameters, number of function parameters, comparison of function parameters with non-dependent types) compared equal.


git-svn-id: https://root.cern.ch/svn/root/trunk@48287 27541ba8-7e3a-0410-8455-c3a389f83636