diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-06-16 16:26:47 +0000 | 
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-06-16 16:26:47 +0000 | 
| commit | 010815a20b7a21a3de4ef55c5ff4fc41fc594740 (patch) | |
| tree | 145511193e755c4b86dfad524eff23a14a9af881 /clang/lib/Sema/SemaTemplate.cpp | |
| parent | f56055aee31888897212bb97ec1e47bf47107708 (diff) | |
| download | bcm5719-llvm-010815a20b7a21a3de4ef55c5ff4fc41fc594740.tar.gz bcm5719-llvm-010815a20b7a21a3de4ef55c5ff4fc41fc594740.zip | |
Downgrade the error when using a typedef in the nested-name-specifier
of an explicit instantiation to an ExtWarn, since nobody else seems to
diagnose this problem.
llvm-svn: 106109
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaTemplate.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index f5f4853fb0f..5e40bc58bba 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/lib/Sema/SemaTemplate.cpp @@ -4911,7 +4911,7 @@ Sema::ActOnExplicitInstantiation(Scope *S,    //    // C++98 has the same restriction, just worded differently.    if (!ScopeSpecifierHasTemplateId(SS)) -    Diag(TemplateLoc, diag::err_explicit_instantiation_without_qualified_id) +    Diag(TemplateLoc, diag::ext_explicit_instantiation_without_qualified_id)        << Record << SS.getRange();    // C++0x [temp.explicit]p2: @@ -5084,7 +5084,7 @@ Sema::DeclResult Sema::ActOnExplicitInstantiation(Scope *S,      // C++98 has the same restriction, just worded differently.      if (!ScopeSpecifierHasTemplateId(D.getCXXScopeSpec()))        Diag(D.getIdentifierLoc(),  -           diag::err_explicit_instantiation_without_qualified_id) +           diag::ext_explicit_instantiation_without_qualified_id)          << Prev << D.getCXXScopeSpec().getRange();      // Check the scope of this explicit instantiation. @@ -5228,7 +5228,7 @@ Sema::DeclResult Sema::ActOnExplicitInstantiation(Scope *S,        D.getCXXScopeSpec().isSet() &&         !ScopeSpecifierHasTemplateId(D.getCXXScopeSpec()))      Diag(D.getIdentifierLoc(),  -         diag::err_explicit_instantiation_without_qualified_id) +         diag::ext_explicit_instantiation_without_qualified_id)      << Specialization << D.getCXXScopeSpec().getRange();    CheckExplicitInstantiationScope(*this, | 

