OSDN Git Service

* g++.old-deja/g++.benjamin/16077.C: Adjust warnings.
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 25bba1b..4595203 100644 (file)
@@ -1,3 +1,212 @@
+2003-03-10  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (perform_overload_resolution): New function.
+       (build_new_function_call): Use it.
+       (build_operator_new_call): Likewise.
+       (add_candidates): Add explicit_targs and template_only parameters.
+       (build_new_op): Adjust accordingly.
+       * cp-tree.h (build_operator_new_call): New function.
+       (build_function_call_real): Remove.
+       (build_function_call_maybe): Likewise.
+       * init.c (build_new_1): Use build_operator_new_call.
+       * typeck.c (build_function_call_real): Rename to ...
+       (build_function_call): ... this.
+
+2003-03-10  Devang Patel  <dpatel@apple.com>
+       
+       PR c++/9394
+       * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWTCH_TAKES_ARG.
+
+2003-03-10  Jason Merrill  <jason@redhat.com>
+
+       PR c++/9798
+       * decl.c (push_using_directive): Push before recursing.
+
+       PR c++/9868, c++/9524
+       * call.c (resolve_scoped_fn_name): Handle the case of a function
+       pointer member.
+
+       * decl2.c (build_offset_ref_call_from_tree): Only mess with 'this'
+       argument in the pointer-to-member case.
+
+2003-03-09  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9373
+       * cp-lang.c (cxx_get_alias_set): Use alias set zero for
+       pointers to member functions.
+
+       PR c++/8534
+       * decl.c (build_ptrmemfunc_type): Do not allow default arugments
+       in pointer-to-member-function types.
+
+2003-03-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * expr.c (cplus_expand_constant): Use C90 prototype style.
+       (cxx_expand_expr): Likewise.
+
+2003-03-09  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/9970
+       * decl.c (duplicate_decls): Only copy DECL_THUNKS for virtual
+       functions.
+
+2003-03-08  Geoffrey Keating  <geoffk@apple.com>
+
+       * lang-specs.h (c++-header): Change .pch to .gch.
+
+2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
+
+       * cp-tree.h (cxx_init): Update prototype.
+       * lex.c (cxx_init): Similarly.
+
+2003-03-08  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9823
+       * cp-tree.h (begin_mem_initializers): Remove.
+       * parser.c (cp_parser_mem_initializer_list): Inline it here.
+       Do not call finish_mem_initializers if not in a constructor.
+       (cp_parser_class_head): Fix typo in error message.
+       * semantics.c (begin_mem_initializers): Remove.
+       * testsuite/g++.dg/parser/constructor1.C: New test.
+
+       PR c++/9809
+       * call.c (add_function_candidate): Skip builtin fuctions that have
+       not yet been declared.
+
+       PR c++/9982
+       * init.c (build_new_1): Correct logic for determining whether or
+       not to use an array cookie.
+
+       PR c++/9524
+       * parser.c (cp_parser_postfix_expression): Call
+       finish_non_static_data_member, even when processing_template_decl.
+
+       PR c++/9912
+       * cp-tree.h (is_ancestor): New function.
+       (handle_class_head): Change prototype.
+       * decl2.c (is_namespace_ancestor): Rename to ...
+       (namespace_anecestor): ... this.
+       (set_decl_namespace): Adjust accordingly.
+       (handle_class_head): Remove unncessary parameters.
+       * parser.c (cp_parser_class_head): Check that
+       nested-name-specifiers are used appropriately.
+       
+2003-03-07  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (reference_binding): Remove REF_IS_VAR parameter.
+       (implicit_conversion): Adjust call to reference_binding.
+       (make_temporary_var_for_ref_to_type): Add TYPE parameter.
+       (initialize_reference): Adjust handling for references bound to
+       rvalues.
+       * cp-tree.h (make_temporary_var_for_ref_to_temp): Change
+       prototype.
+       (real_non_cast_lvalue_p): New method.
+       * cvt.c (build_up_reference): Adjust use of
+       make_temporary_var_for_ref_to_temp.
+       * tree.c (real_non_cast_lvalue_p): New method.
+        
+2003-03-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * except.c (init_exception_processing): Use C90 prototype style.
+       (cp_protect_cleanup_actions): Likewise.
+       (prepare_eh_type): Likewise.
+       (build_eh_type_type): Likewise.
+       (build_exc_ptr): Likewise.
+       (do_begin_catch): Likewise.
+       (dtor_nothrow): Likewise.
+       (do_end_catch): Likewise.
+       (push_eh_cleanup): Likewise.
+       (decl_is_java_type): Likewise.
+       (choose_personality_routine): Likewise.
+       (initialize_handler_parm): Likewise.
+       (expand_start_catch_block): Likewise.
+       (expand_end_catch_block): Likewise.
+       (begin_eh_spec_block): Likewise.
+       (finish_eh_spec_block): Likewise.
+       (do_allocate_exception): Likewise.
+       (do_free_exception): Likewise.
+       (wrap_cleanups_r): Likewise.
+       (stabilize_throw_expr): Likewise.
+       (build_throw): Likewise.
+       (complete_ptr_ref_or_void_ptr_p): Likewise.
+       (is_admissible_throw_operand): Likewise.
+       (nothrow_libfn_p): Likewise.
+       (can_convert_eh): Likewise.
+       (check_handlers_1): Likewise.
+       (check_handlers): Likewise.
+       
+2003-03-06  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (merge_conversion_sequences): New function.
+       (build_conv): Set ICS_USER_FLAG for USER_CONVs.
+       (convert_class_to_reference): Correct handling of second
+       standard conversion sequence in a user-defined conversion
+       sequence.
+       (build_user_type_conversion_1): Use merge_conversion_sequences.
+       * cp-tree.def: Add comments for CONV nodes.
+       * rtti.c (get_tinfo_decl): Use build_address/build_nop.
+       
+2003-03-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * error.c (init_error): Use C90 prototype style.
+       (dump_scope): Likewise.
+       (dump_qualifiers): Likewise.
+       (dump_template_argument): Likewise.
+       (dump_template_argument_list): Likewise.
+       (dump_template_parameter): Likewise.
+       (dump_template_bindings): Likewise.
+       (dump_type): Likewise.
+       (dump_typename): Likewise.
+       (class_key_or_enum): Likewise.
+       (dump_aggr_type): Likewise.
+       (dump_type_prefix): Likewise.
+       (dump_type_suffix): Likewise.
+       (dump_global_iord): Likewise.
+       (dump_simple_decl): Likewise.
+       (dump_decl): Likewise.
+       (dump_template_decl): Likewise.
+       (dump_function_decl): Likewise.
+       (dump_parameters): Likewise.
+       (dump_exception_spec): Likewise.
+       (dump_function_name): Likewise.
+       (dump_template_parms): Likewise.
+       (dump_char): Likewise.
+       (dump_expr_list): Likewise.
+       (dump_expr): Likewise.
+       (dump_binary_op): Likewise.
+       (dump_unary_op): Likewise.
+       (type_as_string): Likewise.
+       (expr_as_string): Likewise.
+       (decl_as_string): Likewise.
+       (context_as_string): Likewise.
+       (lang_decl_name): Likewise.
+       (cp_file_of): Likewise.
+       (cp_line_of): Likewise.
+       (decl_to_string): Likewise.
+       (expr_to_string): Likewise.
+       (fndecl_to_string): Likewise.
+       (code_to_string): Likewise.
+       (language_to_string): Likewise.
+       (parm_to_string): Likewise.
+       (op_to_string): Likewise.
+       (type_to_string): Likewise.
+       (assop_to_string): Likewise.
+       (args_to_string): Likewise.
+       (cv_to_string): Likewise.
+       (cxx_print_error_function): Likewise.
+       (cp_diagnostic_starter): Likewise.
+       (cp_diagnostic_finalizer): Likewise.
+       (cp_print_error_function): Likewise.
+       (function_category): Likewise.
+       (print_instantiation_full_context): Likewise.
+       (print_instantiation_partial_context): Likewise.
+       (maybe_print_instantiation_context): Likewise.
+       (print_instantiation_context): Likewise.
+       (cp_printer): Likewise.
+       (print_integer): Likewise.
+       (print_non_consecutive_character): Likewise.
+       (locate_error): Likewise.
+
 2003-03-06  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/9965