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)
commit265c344ef816a8573562fa27022b8008e0f58198
tree9e48f3b1c08e09cc8d5f984d6d2add72e089010e
parent1de3c7e79010c43300a2637c3020a1489a3dd0de
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.

llvm-svn: 265467
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaTemplate.cpp
clang/test/SemaCXX/using-decl-templates.cpp
clang/test/SemaTemplate/template-id-expr.cpp