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
The partial specialization case here makes no sense; you can't partially specialize a function template, so we know the user didn't mean that.