]> granicus.if.org Git - clang/commit
Make sure to perform dependent access checks when instantiating a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 Mar 2016 20:07:07 +0000 (20:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 23 Mar 2016 20:07:07 +0000 (20:07 +0000)
commit00980eb82ffc9799f5c5cbf5f41f27c270e3c259
tree5d7057f186ecfda610337a50e38b39d098220b81
parent25e5d6e7070354450e6e42ae8d5743a9754340bd
Make sure to perform dependent access checks when instantiating a
lambda-expression. We don't actually instantiate the closure type / operator()
in the template in order to produce the closure type / operator() in the
instantiation, so this isn't caught by the normal path.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264184 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLambda.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/access.cpp