lambda-this11.C
330 Bytes
-
re PR c++/51494 (Legal program rejection - capturing "this" when using static method inside lambda) · 0ef811d7
PR c++/51494 PR c++/51884 PR c++/56222 * tree.c (maybe_dummy_object): Don't capture 'this'. * semantics.c (maybe_resolve_dummy): New. (finish_non_static_data_member): Use it. (finish_qualified_id_expr): Don't test is_dummy_object. * cp-tree.h: Declare maybe_resolve_dummy. * call.c (build_new_method_call_1): Use it. From-SVN: r196549
Jason Merrill committed