OSDN Git Service

PR c++/51526
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 9c847d4..5623bcf 100644 (file)
@@ -1,3 +1,72 @@
+2011-12-19  Jason Merrill  <jason@redhat.com>
+
+       PR c++/51526
+       * semantics.c (build_data_member_initialization): Handle
+       delegating constructor.
+       (build_constexpr_constructor_member_initializers): Likewise.
+
+       PR c++/51553
+       * cp-tree.h (LOOKUP_LIST_INIT_CTOR): Rename from
+       LOOKUP_NO_COPY_CTOR_CONVERSION.
+       (add_list_candidates): Set it earlier.
+       (add_candidates): Don't check explicit on ctors when it's set.
+       (add_function_candidate): Check it even when LOOKUP_ONLYCONVERTING
+       is set.
+
+       PR c++/51553
+       * call.c (add_function_candidate): Allow conversions for the copy
+       parm in list-initialization unless the argument is an init-list.
+
+2011-12-19  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/51619
+       * semantics.c (cxx_eval_vec_init_1): If init is NULL for
+       multidimensional array, just set eltinit to NULL_TREE.
+
+       * cp-gimplify.c (gimplify_must_not_throw_expr): Use
+       gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
+
+2011-12-19  Dodji Seketeli  <dodji@redhat.com>
+
+       PR c++/51477
+       * search.c (lookup_member): Get out early on invalid base type.
+
+2011-12-19  Jason Merrill  <jason@redhat.com>
+
+       PR c++/51489
+       * semantics.c (cxx_eval_outermost_constant_expr): Check for
+       conversion from pointer to integer here.
+       (cxx_eval_constant_expression) [NOP_EXPR]: Not here.
+
+2011-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * semantics.c (finish_compound_literal): Don't call check_narrowing
+       if !(complain & tf_warning_or_error).
+
+2011-12-17  Jason Merrill  <jason@redhat.com>
+
+       PR c++/51588
+       * parser.c (cp_parser_ptr_operator): Reject pointer to member of enum.
+
+2011-12-17  Richard Henderson  <rth@redhat.com>
+
+       PR bootstrap/51072
+       * config-lang.in: Revert last change.
+
+2011-12-17  Jason Merrill  <jason@redhat.com>
+
+       PR c++/51586
+       * parser.c (cp_parser_check_class_key): Handle error_mark_node.
+
+       PR c++/51587
+       * decl.c (start_enum): Avoid using ENUM_UNDERLYING_TYPE on a
+       non-enum.
+
+2011-12-16  Jason Merrill  <jason@redhat.com>
+
+       PR c++/51416
+       * init.c (build_value_init_noctor): Check for incomplete type.
+
 2011-12-16  Richard Henderson  <rth@redhat.com>
 
        PR bootstrap/51072