]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
semantics.c (outer_lambda_capture_p): New fn.
authorJason Merrill <jason@redhat.com>
Fri, 23 Oct 2009 18:08:18 +0000 (14:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 23 Oct 2009 18:08:18 +0000 (14:08 -0400)
commit9660afe0427e38f5d98ceebac34cd780b9167bb0
tree051c608ab728620701b9c69fbbb4409d799cf03c
parent78dd7466f8143975212a874e72a0ffc843c09a94
semantics.c (outer_lambda_capture_p): New fn.

* semantics.c (outer_lambda_capture_p): New fn.
(thisify_lambda_field): Factor out...
(add_default_capture): ...from here.
(finish_id_expression): Use them.

From-SVN: r153510
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested2.C [new file with mode: 0644]