]> granicus.if.org Git - clang/commit
Properly switch into the declaring scope of a template when performing
authorJohn McCall <rjmccall@apple.com>
Thu, 29 Apr 2010 00:35:03 +0000 (00:35 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 29 Apr 2010 00:35:03 +0000 (00:35 +0000)
commitf5813826802c2e76cdc13cae834ebfd4518d74a6
treef213a546ee469fd7cf7af44cd85ae0bcaf2f0023
parentcc8a5d5f90bbbbcb46f342117b851b7e07ec34f1
Properly switch into the declaring scope of a template when performing
template argument deduction or (more importantly) the final substitution
required by such deduction.  Makes access control magically work in these
cases.

Fixes PR6967.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102572 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/CXX/class.access/p6.cpp