r190959 - Remove some dead code.
Richard Smith
richard-llvm at metafoo.co.uk
Wed Sep 18 14:55:14 PDT 2013
Author: rsmith
Date: Wed Sep 18 16:55:14 2013
New Revision: 190959
URL: http://llvm.org/viewvc/llvm-project?rev=190959&view=rev
Log:
Remove some dead code.
Modified:
cfe/trunk/lib/Sema/SemaTemplate.cpp
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=190959&r1=190958&r2=190959&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaTemplate.cpp (original)
+++ cfe/trunk/lib/Sema/SemaTemplate.cpp Wed Sep 18 16:55:14 2013
@@ -7282,12 +7282,9 @@ DeclResult Sema::ActOnExplicitInstantiat
//
// 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();
More information about the cfe-commits
mailing list