OSDN Git Service

PR c++/41896
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2010 02:12:53 +0000 (02:12 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2010 02:12:53 +0000 (02:12 +0000)
commit86b604cfd0917da33b295d4c4d8892c7619994b7
treec026a8558e03de540d0342d079d43fa8908967e5
parent2c289d8992907387c954c22d3770e562a625879b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156678 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/parser.c
gcc/cp/semantics.c