]> granicus.if.org Git - clang/commit
Fix a crash on invalid with template handling
authorRichard Trieu <rtrieu@google.com>
Tue, 5 Apr 2016 21:13:54 +0000 (21:13 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 5 Apr 2016 21:13:54 +0000 (21:13 +0000)
commit499ed1eba714d86e29985c587a3bbd6b037c5d78
tree4e2069d58515d3950f1656ff21128fa9884ecc5c
parente70feffd99948932a432e82d6278f9a9a6e03978
Fix a crash on invalid with template handling

This is a fix for https://llvm.org/bugs/show_bug.cgi?id=25561 which was a
crash on invalid.  Change the handling of invalid decls to have a catch-all
case to prevent unexpecting decls from triggering an assertion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265467 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/SemaCXX/using-decl-templates.cpp
test/SemaTemplate/template-id-expr.cpp