OSDN Git Service

* semantics.c (finish_non_static_data_member): Call maybe_dummy_object
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 412d818..d43f683 100644 (file)
@@ -1,5 +1,24 @@
 2010-04-27  Jason Merrill  <jason@redhat.com>
 
+       * semantics.c (finish_non_static_data_member): Call maybe_dummy_object
+       whenever object is NULL_TREE.  Don't do 'this' capture here.
+       (finish_qualified_id_expr): Pass NULL_TREE.
+       (finish_id_expression): Likewise.
+       (lambda_expr_this_capture): Likewise.
+
+       * semantics.c (finish_qualified_id_expr): Use maybe_dummy_object
+       rather than checking current_class_ref directly.
+       (finish_call_expr): Likewise.
+
+       PR c++/43856
+       * name-lookup.c (qualify_lookup): Disqualify lambda op().
+       * class.c (current_nonlambda_class_type): New fn.
+       * semantics.c (nonlambda_method_basetype): New.
+       * cp-tree.h: Declare them.
+       * tree.c (maybe_dummy_object): Handle implicit 'this' capture.
+
+       * semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
+
        PR c++/43875
        * semantics.c (lambda_return_type): Complain about
        braced-init-list.