diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-10-13 00:27:52 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-10-13 00:27:52 +0000 |
| commit | 7731d3fafc0d05c59fad6d32f5a03a0e927322a2 (patch) | |
| tree | 27564cf06a68975b7160b164fd51aa641787f856 /clang/lib/Sema/SemaTemplateInstantiate.cpp | |
| parent | e910b9d9cdc0e557f5877e43ed8ff3f3a476fd34 (diff) | |
| download | bcm5719-llvm-7731d3fafc0d05c59fad6d32f5a03a0e927322a2.tar.gz bcm5719-llvm-7731d3fafc0d05c59fad6d32f5a03a0e927322a2.zip | |
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.
llvm-svn: 116382
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiate.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp index 2bc0e40b39a..3230e02e54f 100644 --- a/clang/lib/Sema/SemaTemplateInstantiate.cpp +++ b/clang/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. |

