]> granicus.if.org Git - clang/commit
Fix PR19169 [Crash on invalid attempting to specialize a template method as a templat...
authorKarthik Bhat <kv.bhat@samsung.com>
Thu, 8 May 2014 13:16:20 +0000 (13:16 +0000)
committerKarthik Bhat <kv.bhat@samsung.com>
Thu, 8 May 2014 13:16:20 +0000 (13:16 +0000)
commitc52c190c1e790317e6448902fbf08511fb6c1789
tree16e6e4821b1dd6695d4c1e7a5def183c336a5082
parent2d4fcb889809ede7c322081a15b4b088231589ff
Fix PR19169 [Crash on invalid attempting to specialize a template method as a template variable].
A template declaration of a template name can be null in case we have a dependent name or a set of function templates.
Hence use dyn_cast_or_null instead of dyn_cast. Also improve the diagnostic emitted in this case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208313 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/SemaCXX/cxx1y-variable-templates_top_level.cpp