diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-05-12 23:25:50 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-05-12 23:25:50 +0000 |
| commit | 1b57ff32a828c485f5b685ffe02e2effa79f405a (patch) | |
| tree | 79d0cd3dbd5bff8a94b409d94fd36b947fb3b6e3 /clang/lib/Parse/Parser.cpp | |
| parent | e83b560e0687b83a118ee352a93bc10014153248 (diff) | |
| download | bcm5719-llvm-1b57ff32a828c485f5b685ffe02e2effa79f405a.tar.gz bcm5719-llvm-1b57ff32a828c485f5b685ffe02e2effa79f405a.zip | |
Implement parsing for explicit instantiations of class templates, e.g.,
template class X<int>;
This also cleans up the propagation of template information through
declaration parsing, which is used to improve some diagnostics.
llvm-svn: 71608
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
| -rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index d07d52e58c3..12e584377d8 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -480,7 +480,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclarationOrFunctionDefinition(AccessSpecifier AS) { // Parse the common declaration-specifiers piece. DeclSpec DS; - ParseDeclarationSpecifiers(DS, 0, AS); + ParseDeclarationSpecifiers(DS, ParsedTemplateInfo(), AS); // C99 6.7.2.3p6: Handle "struct-or-union identifier;", "enum { X };" // declaration-specifiers init-declarator-list[opt] ';' |

