OSDN Git Service

Make lambda conversion op and op() non-static.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Mar 2010 22:29:53 +0000 (22:29 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:34:00 +0000 (09:34 +0900)
commitea545a1ba949cecf8950617d609567800a4b5d91
treeb0dfb6318646276f5d460ce5082c4a158ee147a9
parenta73e23fb88f81b7074d1b568f5a7c64d93ea913b
Make lambda conversion op and op() non-static.
* semantics.c (maybe_add_lambda_conv_op): Make non-static.
Also add the thunk function returned by the conversion op.
Mark the conversion deleted if the op() is variadic.
* decl2.c (mark_used): Give helpful message about deleted conversion.
* parser.c (cp_parser_lambda_declarator_opt): Don't make op() static.
* semantics.c (finish_this_expr): Adjust.
* mangle.c (write_closure_type_name): Adjust.
* decl.c (grok_op_properties): Don't allow it.
* call.c (build_user_type_conversion_1): No static conversion ops.
(build_op_call): Or op().

* decl2.c (change_return_type): Fix 'this' quals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157681 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog