diff options
author | John McCall <rjmccall@apple.com> | 2010-07-16 08:13:16 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-07-16 08:13:16 +0000 |
commit | c9068d7dd94d439cec66c421115d15303e481025 (patch) | |
tree | 8c9940175bcfc7c9ba1db3fbe19c759a3c4755e0 /lib/Sema/SemaDecl.cpp | |
parent | 34fa29485d6e0b22f1f32852f34e483db0f90b0d (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.cpp | 2 |
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; |