OSDN Git Service

2010-12-09 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 47a915a..fb14862 100644 (file)
@@ -1,3 +1,58 @@
+2010-12-08  Jason Merrill  <jason@redhat.com>
+
+       PR c++/46348
+       * semantics.c (cxx_eval_vec_init_1): Handle value-init.
+       (cxx_eval_vec_init): Pass value_init arg.
+
+2010-12-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+       PR c++/45329
+       * call.c (struct conversion): Document bad_p field.
+       (enum rejection_reason_code): Define.
+       (struct conversion_info): Define.
+       (struct rejection_reason): Define.
+       (struct z_candidate): Add `reason' field.
+       (add_candidate): Add `reason' parameter.  Store it in CAND.
+       (alloc_rejection, arity_rejection, arg_conversion_rejection):
+       New functions.
+       (bad_arg_conversion_rejection): New function.
+       (convert_class_to_reference): Add comment.
+       (remaining_arguments): New function.
+       (add_function_candidate): Record rejection reason and pass it to
+       add_candidate.
+       (add_conv_candidate, build_builtin_candidate): Likewise.
+       (add_template_candidate_real): Likewise.
+       (print_conversion_rejection): New function.
+       (print_z_candidate): Print CAND->REASON if it exists.  Adjust
+       diagnostic strings.
+       (print_z_candidates): Add location_t argument.  Adjust calling
+       sequence for print_z_candidate. Print header line directly.
+       (build_user_type_conversion_1): Add reason for rejection to
+       CAND.  Adjust call to print_z_candidates.
+       (print_error_for_call_failure): New function.
+       (build_new_function_call): Call it.  Adjust call to
+       print_z_candidates.
+       (build_operator_new_call): Likewise.
+       (build_op_call): Likewise.
+       (build_conditional_expr): Likewise.
+       (build_new_op): Likewise.
+       (build_new_method_call): Likewise.
+
+2010-12-08  Jason Merrill  <jason@redhat.com>
+
+       PR c++/45822
+       * cp-tree.h (LOOKUP_DEFAULTED): New.
+       * call.c (add_function_candidate): Check it.
+       * method.c (synthesized_method_walk): Set it.
+       (do_build_copy_assign): Likewise.
+       * init.c (perform_member_init): Likewise.
+       (emit_mem_initializers): Likewise.
+
+       PR c++/46736
+       * decl.c (cp_finish_decl): Complain about an implicitly deleted
+       method defaulted outside the class.
+       * method.c (maybe_explain_implicit_delete): Don't check DECL_INITIAL.
+
 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
 
        * rtti.c: Don't include assert.h.