Hi All,
A small patch to fix PR19169. In ActOnVarTemplateSpecialization the getAsTemplateDecl() function might return null if template name refers to a set of function templates. Handle the same by using dynamic_cast_or_null instead of dynamic_cast which will crash if the pointer being casted is null.
Please let me know if i can go ahead and commit the same?
Thanks and Regards
Karthik Bhat
We should give this diagnostic in the case where there's only one declaration that's a function as well as in the case where there's an overload set of them.