summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTemplate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-05-21 20:45:30 +0000
committerJohn McCall <rjmccall@apple.com>2010-05-21 20:45:30 +0000
commitb54367d2f8f776583c2c77075fc0460e663c743f (patch)
treefc24b978d014364289eef4d16779a2cf5e020135 /clang/lib/Parse/ParseTemplate.cpp
parent304a9537e116d54d2d9af9fa0b48009aac3b9926 (diff)
downloadbcm5719-llvm-b54367d2f8f776583c2c77075fc0460e663c743f.tar.gz
bcm5719-llvm-b54367d2f8f776583c2c77075fc0460e663c743f.zip
Propagate access specifiers to anonymous union members nested within classes.
Fixes <rdar://problem/7987650>. llvm-svn: 104376
Diffstat (limited to 'clang/lib/Parse/ParseTemplate.cpp')
-rw-r--r--clang/lib/Parse/ParseTemplate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseTemplate.cpp b/clang/lib/Parse/ParseTemplate.cpp
index ff699534015..93197816ced 100644
--- a/clang/lib/Parse/ParseTemplate.cpp
+++ b/clang/lib/Parse/ParseTemplate.cpp
@@ -201,7 +201,7 @@ Parser::ParseSingleDeclarationAfterTemplate(
if (Tok.is(tok::semi)) {
DeclEnd = ConsumeToken();
- DeclPtrTy Decl = Actions.ParsedFreeStandingDeclSpec(CurScope, DS);
+ DeclPtrTy Decl = Actions.ParsedFreeStandingDeclSpec(CurScope, AS, DS);
DS.complete(Decl);
return Decl;
}
OpenPOWER on IntegriCloud