]> granicus.if.org Git - clang/commit
[Sema] Transform the default arguments of a lambda expression when the
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 16 Dec 2016 21:16:57 +0000 (21:16 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 16 Dec 2016 21:16:57 +0000 (21:16 +0000)
commitb0bfcdc53727ae57145e9b90d83977c74bdfcbeb
tree3cd897dc5a1b3b5afb6edbbc14febcc59e279b50
parent788453b291a52f13a09ececb9a7a2fd725bb1bd6
[Sema] Transform the default arguments of a lambda expression when the
lambda expression is instantiated.

Rather than waiting until Sema::CheckCXXDefaultArgExpr tries to
transform the default arguments (which fails because it can't get the
template arguments that are used), transform the default arguments
earlier when the lambda expression is transformed in
TransformLambdaExpr.

rdar://problem/27535319

Differential Revision: https://reviews.llvm.org/D23096

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/TreeTransform.h
test/SemaCXX/vartemplate-lambda.cpp