]> 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>
Thu, 11 Feb 2010 02:12:53 +0000 (21:12 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 11 Feb 2010 02:12:53 +0000 (21:12 -0500)
commit19030d779a0d27dbdf3f774a15137cec8f4a1550
treec026a8558e03de540d0342d079d43fa8908967e5
parent94d7ad5fa7705d68d6c05207a871397d9ec2a6ee
re PR c++/41896 ([c++0x] Segfault because of a nested lambda function)

PR c++/41896
* semantics.c (outer_lambda_capture_p): Revert.
(add_capture): Only finish_member_declaration if
we're in the lambda class.
(register_capture_members): New.
* cp-tree.h: Declare it.
* parser.c (cp_parser_lambda_expression): Call it.

From-SVN: r156678
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/semantics.c