summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 21:55:14 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-09-18 21:55:14 +0000
commit5977d875c1cb8a57d494a6d11d342256e4a80e77 (patch)
tree2ae669cc8beadc4d78858c532a42c7f20ee53247 /clang/lib/Sema
parentdd9891f22d4cb73157ba518f94617a27a7ff3ca4 (diff)
downloadbcm5719-llvm-5977d875c1cb8a57d494a6d11d342256e4a80e77.tar.gz
bcm5719-llvm-5977d875c1cb8a57d494a6d11d342256e4a80e77.zip
Remove some dead code.
llvm-svn: 190959
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index f6863fb2799..a7a6bb4f0cf 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -7282,12 +7282,9 @@ DeclResult Sema::ActOnExplicitInstantiation(Scope *S,
//
// C++98 has the same restriction, just worded differently.
//
- // C++1y If the explicit instantiation is for a variable, the
- // unqualified-id in the declaration shall be a template-id.
- if (!ScopeSpecifierHasTemplateId(D.getCXXScopeSpec()) &&
- (!PrevTemplate ||
- (D.getName().getKind() != UnqualifiedId::IK_TemplateId &&
- D.getCXXScopeSpec().isSet())))
+ // This does not apply to variable template specializations, where the
+ // template-id is in the unqualified-id instead.
+ if (!ScopeSpecifierHasTemplateId(D.getCXXScopeSpec()) && !PrevTemplate)
Diag(D.getIdentifierLoc(),
diag::ext_explicit_instantiation_without_qualified_id)
<< Prev << D.getCXXScopeSpec().getRange();
OpenPOWER on IntegriCloud