aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-13 00:27:52 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-13 00:27:52 +0000
commit5f3aeb6f8b1e1cc00015407ef6886429f9b7fb78 (patch)
treed57d221dba6317745e16ad2a5d98f4eeccfc1387 /lib/Sema/SemaTemplateInstantiate.cpp
parent9b623639378d53a675921ddfa7316034d571881e (diff)
Teach the warning about unnamed/local types in template arguments to
actually walk the template argument type to find any unnamed/local types within it. Fixes PR6784. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index 2bc0e40b39..3230e02e54 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -1265,7 +1265,6 @@ namespace {
struct PartialSpecMatchResult {
ClassTemplatePartialSpecializationDecl *Partial;
TemplateArgumentList *Args;
- llvm::SmallVector<PartialDiagnosticAt, 1> Diagnostics;
};
}
@@ -1336,7 +1335,6 @@ Sema::InstantiateClassTemplateSpecialization(
Matched.push_back(PartialSpecMatchResult());
Matched.back().Partial = Partial;
Matched.back().Args = Info.take();
- Matched.back().Diagnostics.append(Info.diag_begin(), Info.diag_end());
}
}
@@ -1410,10 +1408,6 @@ Sema::InstantiateClassTemplateSpecialization(
Pattern = OrigPartialSpec;
ClassTemplateSpec->setInstantiationOf(Best->Partial, Best->Args);
-
- // Report any suppressed diagnostics.
- for (unsigned I = 0, N = Best->Diagnostics.size(); I != N; ++I)
- Diag(Best->Diagnostics[I].first, Best->Diagnostics[I].second);
} else {
// -- If no matches are found, the instantiation is generated
// from the primary template.