diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-06-16 22:31:08 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-06-16 22:31:08 +0000 |
| commit | f7d77718123f89862cd761cf3bac4d5e80808e40 (patch) | |
| tree | 1b58c3848efa8058bcbcdea774678aa475886535 /clang/lib/Sema/SemaDecl.cpp | |
| parent | d50c96a002f39ec9dba678acb391f7658201fd4c (diff) | |
| download | bcm5719-llvm-f7d77718123f89862cd761cf3bac4d5e80808e40.tar.gz bcm5719-llvm-f7d77718123f89862cd761cf3bac4d5e80808e40.zip | |
Fix the recently-added warning about 'typename' and 'template'
disambiguation keywords outside of templates in C++98/03. Previously,
the warning would fire when the associated nested-name-specifier was
not dependent, but that was a misreading of the C++98/03 standard:
now, we complain only when we're outside of any template.
llvm-svn: 106161
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index fbd4ff446ac..9e31a543722 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -307,7 +307,7 @@ bool Sema::DiagnoseUnknownTypeName(const IdentifierInfo &II, << (NestedNameSpecifier *)SS->getScopeRep() << II.getName() << SourceRange(SS->getRange().getBegin(), IILoc) << FixItHint::CreateInsertion(SS->getRange().getBegin(), "typename "); - SuggestedType = ActOnTypenameType(SourceLocation(), *SS, II, IILoc).get(); + SuggestedType = ActOnTypenameType(S, SourceLocation(), *SS, II, IILoc).get(); } else { assert(SS && SS->isInvalid() && "Invalid scope specifier has already been diagnosed"); |

