aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-10-27 17:58:09 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-10-27 17:58:09 -0400
commitb77068f27bbad156e88352bb1a3382a96b66acbf (patch)
tree000402686698d1995b0a51ccb183ff709533ba84 /libcpp
parent73d28034382a7ba65ec46d6a1cebd828f32b16c9 (diff)
downloadgcc-b77068f27bbad156e88352bb1a3382a96b66acbf.zip
gcc-b77068f27bbad156e88352bb1a3382a96b66acbf.tar.gz
gcc-b77068f27bbad156e88352bb1a3382a96b66acbf.tar.bz2
Allow no-capture lambdas to convert to function pointer.
* semantics.c (maybe_add_lambda_conv_op): New. * parser.c (cp_parser_lambda_expression): Call it. (cp_parser_lambda_declarator_opt): Make op() static if no captures. * mangle.c (write_closure_type_name): Adjust. * semantics.c (finish_this_expr): Adjust. * decl.c (grok_op_properties): Allow it. * call.c (build_user_type_conversion_1): Handle static conversion op. (build_op_call): And op(). From-SVN: r153617
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions