]> granicus.if.org Git - clang/commit
Teach Sema::ActOnCXXNestedNameSpecifier and Sema::CheckTemplateIdType
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Mar 2011 21:37:14 +0000 (21:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Mar 2011 21:37:14 +0000 (21:37 +0000)
commit6cd9d4aa13c2145c8b4398453974515b734bfe42
tree32e2b9ddbad8409e4d8e56de3564249fd8ab8fef
parenta93fc9f053bae84cf7c2a04ea6b1b26e0ea44d8f
Teach Sema::ActOnCXXNestedNameSpecifier and Sema::CheckTemplateIdType
to cope with non-type templates by providing appropriate
errors. Previously, we would either assert, crash, or silently build a
dependent type when we shouldn't. Fixes PR9226.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127037 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/TemplateName.cpp
lib/Parse/ParseExprCXX.cpp
lib/Sema/SemaCXXScopeSpec.cpp
lib/Sema/SemaTemplate.cpp
test/SemaTemplate/nested-name-spec-template.cpp