diff options
author | John McCall <rjmccall@apple.com> | 2010-05-21 20:45:30 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-21 20:45:30 +0000 |
commit | aec0371e62be013a2e6466688ccf6a7460880262 (patch) | |
tree | 729e23bf5f2a846744510b6968055659a74ff3d4 /lib/Parse/Parser.cpp | |
parent | 3f64a0e3be2c9408f8256bd3aa9f0ce9e268982c (diff) |
Propagate access specifiers to anonymous union members nested within classes.
Fixes <rdar://problem/7987650>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 6dbb99e395..bfcb6e7ee7 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -538,7 +538,7 @@ Parser::ParseDeclarationOrFunctionDefinition(ParsingDeclSpec &DS, // declaration-specifiers init-declarator-list[opt] ';' if (Tok.is(tok::semi)) { ConsumeToken(); - DeclPtrTy TheDecl = Actions.ParsedFreeStandingDeclSpec(CurScope, DS); + DeclPtrTy TheDecl = Actions.ParsedFreeStandingDeclSpec(CurScope, AS, DS); DS.complete(TheDecl); return Actions.ConvertDeclToDeclGroup(TheDecl); } |