diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-26 00:52:18 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-26 00:52:18 +0000 |
commit | 5aeccdbb4bdc94e48c04cacc59fa812af32109b2 (patch) | |
tree | a12d78394bc3923a43dea66e6e5054c3bc772a1f /lib/Parse/Parser.cpp | |
parent | 50713450f61b85805e1ca97e547a4082b7798bd3 (diff) |
Handle parsing of templates in member declarations. Pass the AccessSpecifier all the way down to ActOnClassTemplate.
Doug, Sebastian: Plz review! :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 135faf4e9c..7a221d007c 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -442,10 +442,11 @@ Parser::DeclTy *Parser::ParseExternalDeclaration() { /// Parser::DeclTy * Parser::ParseDeclarationOrFunctionDefinition( - TemplateParameterLists *TemplateParams) { + TemplateParameterLists *TemplateParams, + AccessSpecifier AS) { // Parse the common declaration-specifiers piece. DeclSpec DS; - ParseDeclarationSpecifiers(DS, TemplateParams); + ParseDeclarationSpecifiers(DS, TemplateParams, AS); // C99 6.7.2.3p6: Handle "struct-or-union identifier;", "enum { X };" // declaration-specifiers init-declarator-list[opt] ';' |