]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/41896 ([c++0x] Segfault because of a nested lambda function)
authorJason Merrill <jason@redhat.com>
Wed, 10 Feb 2010 22:45:07 +0000 (17:45 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 10 Feb 2010 22:45:07 +0000 (17:45 -0500)
commit2cb95a6ade9618f6056c251d07617a7a4c9c51e2
treea4a0aac725577272bb6dd69372cebef058daf4e0
parentf1c3cf3c931a57f565ea7d4fe117875bc8701cd9
re PR c++/41896 ([c++0x] Segfault because of a nested lambda function)

PR c++/41896
* semantics.c (outer_lambda_capture_p): Use current_function_decl
instead of current_class_type.

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