X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fcp%2FChangeLog;h=e8329c1c4ad914900ed05e84c8aa1993ca1200d6;hp=e32c3b7e87782008d200ec21aab6bef4e2d4f6b8;hb=ed2deec6f4667bd99b80bac2fe31450e1f4ad30d;hpb=d876222fa6351c13468ab132763f33047a099a58 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e32c3b7e877..e8329c1c4ad 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,189 @@ +2010-12-08 Jason Merrill + + 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 + + * rtti.c: Don't include assert.h. + +2010-12-07 Nathan Froyd + + PR c++/45330 + * cp-tree.h (suggest_alternatives_for, location_of): Declare. + * error.c (dump_expr): Handle TYPE_DECL. + (location_of): Unstaticize. + * name-lookup.c (suggest_alternatives_for): New function. + * lex.c (unqualified_name_lookup_error): Call it. + +2010-12-06 Nicola Pero + + * call.c: Include c-family/c-objc.h. + * decl.c: Same change. + * decl2.c: Same change. + * error.c: Same change. + * lex.c: Same change. + * parser.c: Same change. + * pt.c: Same change. + * semantics.c: Same change. + * typeck.c: Same change. + * Make-lang.in (cp/decl.o): Depend on c-family/c-objc.h. + (cp/decl2.o): Same change. + (cp/call.o): Same change. + (cp/error.o): Same change. + (cp/lex.o): Same change. + (cp/parser.o): Same change. + (cp/pt.o): Same change. + (cp/semantics.o): Same change. + (cp/typeck.o): Same change. + * config-lang.in (gtfiles): Added c-family/c-objc.h. + +2010-12-03 Jason Merrill + + PR c++/46645 + * semantics.c (build_data_member_initialization): Remove assert. + + PR c++/46058 + * tree.c (lvalue_kind) [SCOPE_REF]: Handle non-dependent case. + +2010-12-03 Richard Guenther + + PR c/46745 + * error.c (dump_expr): Handle MEM_REF. + +2010-12-03 Laurynas Biveinis + + * cp-tree.h (struct aggr_init_expr_arg_iterator_d): Remove GTY + tag. + +2010-12-02 Nicola Pero + + * parser.c (cp_parser_objc_throw_statement): Use + cp_parser_expression, not cp_parser_assignment_expression, to + parse the argument of a @throw. + +2010-12-01 Joseph Myers + + * cp-objcp-common.c, lex.c, typeck.c: Don't include toplev.h. + * Make-lang.in (cp/lex.o, cp/cp-objcp-common.o, cp/typeck2.o): + Update dependencies. + +2010-11-30 Nicola Pero + + * decl.c (finish_function): Call objc_finish_function when + compiling Objective-C++. + * call.c (standard_conversion): Do not call + objc_non_volatilized_type(). + (implicit_conversion): Same change. + * typeck.c (comp_ptr_ttypes_real): Same change. + +2010-11-30 Joseph Myers + + * cp-gimplify.c, cp-lang.c, cvt.c, cxx-pretty-print.c, error.c, + except.c, expr.c, friend.c, init.c, mangle.c, name-lookup.c, + optimize.c, parser.c, rtti.c, tree.c, typeck2.c: Don't include + toplev.h. + * Make-lang.in: Dependencies for above files changed to remove + toplev.h. + +2010-11-29 Dodji Seketeli + + PR c++/42260 + * call.c (add_builtin_candidate): At this point the resulting type + of an indirection operator should be complete. + +2010-11-29 Dodji Seketeli + + PR c++/45383 + Reverted patch for PR c++/42260 + * cp-tree.h (lookup_conversions): Reverted "Add new bool parameter to + declarationE." + * search.c (lookup_conversion): Reverted "Use new bool parameter in + definition". + * call.c (add_builtin_candidates): Reverted "Don't lookup template + conversion" + (convert_class_to_reference, build_user_type_conversion_1, + build_op_call): Reverted "Adjust". + * cvt.c (build_expr_type_conversion): Reverted "Likewise". + +2010-11-29 Nicola Pero + + * parser.c (cp_parser_objc_try_catch_finally_statement): Parse + @catch(...) and pass NULL_TREE to objc_begin_catch_clause() in + that case. Improved error recovery. Reorganized code to be + almost identical to c_parser_objc_try_catch_finally_statement. + +2010-11-27 Nicola Pero + + PR objc++/46222 + * decl.c (grokdeclarator): Replaced an assert (for a case that can + never happen in C++, but could happen in ObjC++ for invalid code) + with a check that prints an error message and returns + error_mark_node. + +2010-11-23 Jeffrey Yasskin + + PR c++/46527 + * pt.c (instantiate_decl): Propagate the template's location to + its instance. + +2010-11-20 Joseph Myers + + * name-lookup.c (handle_namespace_attrs): Don't check + HANDLE_PRAGMA_VISIBILITY. + * parser.c (cp_parser_namespace_definition): Don't check + HANDLE_PRAGMA_VISIBILITY. + +2010-11-20 Nathan Froyd + + PR c++/16189 + PR c++/36888 + PR c++/45331 + * parser.c (cp_lexer_set_token_position): New function. + (cp_lexer_previous_token_position): New function. + (cp_lexer_previous_token): Call it. + (cp_parser_class_specifier): Try to gracefully handle a missing + semicolon. + +2010-11-20 Jakub Jelinek + + PR c++/46538 + * decl.c (cp_make_fname_decl): Return error_mark_node if + current_binding_level has already sk_function_parms kind. + + PR c++/46526 + * semantics.c (cxx_eval_call_expression): Unshare the result. + +2010-11-19 Nicola Pero + + * parser.c (cp_parser_objc_protocol_declaration): Pass attributes + to objc_declare_protocols. + +2010-11-18 Nathan Froyd + + PR c/33193 + * typeck.c (cp_build_unary_op): Call build_real_imag_expr for + REALPART_EXPR and IMAGPART_EXPR. + 2010-11-16 Jason Merrill + * call.c (convert_like_real): Don't make a temp for copy-list-init. + (build_over_call): Don't handle that here. + (build_new_method_call): Use COMPLETE_OR_OPEN_TYPE_P for error. + + PR c++/46497 + * call.c (build_over_call): Check for =delete even when trivial. + DR 1004 * decl.c (make_unbound_class_template): Handle using injected-type-name as template.