summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-03-18 00:15:42 +0000
committerDouglas Gregor <dgregor@apple.com>2012-03-18 00:15:42 +0000
commitd17dfe16388a8c8b4f814a309c140b8ab59331ed (patch)
treeb7da357d7e05300e277d94a62cfa41e3e5f14f58 /clang/lib
parent31feb337a606f4417fbaa4160ed16405de60f609 (diff)
downloadbcm5719-llvm-d17dfe16388a8c8b4f814a309c140b8ab59331ed.tar.gz
bcm5719-llvm-d17dfe16388a8c8b4f814a309c140b8ab59331ed.zip
Replace a FIXME with a diagnostic when we can't resolve the
nested-name-specifier for a class template declaration. Fixes PR12291. llvm-svn: 153006
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index afa6c0e15b8..680e6eaf2e5 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -872,7 +872,8 @@ Sema::CheckClassTemplate(Scope *S, unsigned TagSpec, TagUseKind TUK,
if (SS.isNotEmpty() && !SS.isInvalid()) {
SemanticContext = computeDeclContext(SS, true);
if (!SemanticContext) {
- // FIXME: Produce a reasonable diagnostic here
+ Diag(NameLoc, diag::err_template_qualified_declarator_no_match)
+ << SS.getScopeRep() << SS.getRange();
return true;
}
OpenPOWER on IntegriCloud