aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-16 08:13:16 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-16 08:13:16 +0000
commitc9068d7dd94d439cec66c421115d15303e481025 (patch)
tree8c9940175bcfc7c9ba1db3fbe19c759a3c4755e0 /lib/Sema/SemaDecl.cpp
parent34fa29485d6e0b22f1f32852f34e483db0f90b0d (diff)
Treat template parameters as part of the declaration-specifiers for the
purpose of access control. Fixes PR7644. I can't actually find anything directly justifying this, but it seems obvious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r--lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 538d56470f..29ecdbc680 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -1562,7 +1562,7 @@ Sema::DeclPtrTy Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
<< DS.getSourceRange();
}
- return DeclPtrTy::make(Tag);
+ return DeclPtrTy::make(TagD);
}
/// We are trying to inject an anonymous member into the given scope;