summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-12-27 20:03:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-12-27 20:03:09 +0000
commitfa4a09d8afbfc39fbb3450dd7d3ed41621c2a6bc (patch)
treee6e81ecaac4839fd1347bf81d7844b33c3dbebf9 /clang/lib/Sema/SemaTemplate.cpp
parentb6d0b83cd2ff134daf4074d55871865f14764dc0 (diff)
downloadbcm5719-llvm-fa4a09d8afbfc39fbb3450dd7d3ed41621c2a6bc.tar.gz
bcm5719-llvm-fa4a09d8afbfc39fbb3450dd7d3ed41621c2a6bc.zip
Add warning flag for "partial specialization is not more specialized than primary template" error (since Eigen hits it), and while I'm here also add a warning flag for "partial specialization is not usable because one or more of its parameters cannot be deduced" warning.
llvm-svn: 290625
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index b335e7e2602..5a3083ce3bc 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -2637,8 +2637,8 @@ static void checkMoreSpecializedThanPrimary(Sema &S, PartialSpecDecl *Partial) {
auto *Template = Partial->getSpecializedTemplate();
S.Diag(Partial->getLocation(),
- diag::err_partial_spec_not_more_specialized_than_primary)
- << /*variable template*/isa<VarTemplateDecl>(Template);
+ diag::ext_partial_spec_not_more_specialized_than_primary)
+ << isa<VarTemplateDecl>(Template);
if (Info.hasSFINAEDiagnostic()) {
PartialDiagnosticAt Diag = {SourceLocation(),
OpenPOWER on IntegriCloud