OSDN Git Service

* g++.old-deja/g++.benjamin/16077.C: Adjust warnings.
[pf3gnuchains/gcc-fork.git] / gcc / cp / ChangeLog
index 180fccb..4595203 100644 (file)
@@ -1,3 +1,894 @@
+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
+       * call.c (reference_binding): Add ref_is_var parameter.
+       (implicit_conversion): Adjust call to reference_binding.
+       (initialize_reference): Likewise.
+
+       PR c++/9400
+       * decl.c (pushdecl): Don't check for shadowing of DECL_ARTIFICIAL
+       PARM_DECLs.
+
+       PR c++/9791
+       * class.c (get_basefndecls): Use lookup_fnfields_1.
+
+2003-03-06  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/9188
+       * parser.c (cp_parser_type_parameter): Remove redundant `expect'
+       in error message.
+       (cp_parser_single_declaration): Likewise.
+
+2003-03-05  Jason Merrill  <jason@redhat.com>
+
+       PR c++/9440
+       * call.c (build_conditional_expr): Use convert rather than an
+       explicit NOP_EXPR.
+
+2003-03-02  Matt Austern  <austern@apple.com>
+
+       * decl.c (cp_binding_level): Add static_decls varray member.
+       (add_decl_to_level): Add static/inline namespace scope
+       declarations to static_decls array.
+       (wrapup_global_for_namespace): Pass static_decls only, instead of
+       all decls, to wrapup_global_declarations/check_global_declarations.
+       (push_namespace): Initialize static_decls for ordinary namespaces.
+       (cxx_init_decl_processing): Initialize static_decls for global
+       namespace.
+       
+2003-03-05  Mark Mitchell  <mark@codesourcery.com>
+
+       * class.c (end_of_class): Correct thinko.
+
+2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * config-lang.in: Replace ${libstdcxx_version} by its value.
+
+2003-03-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+        * cp-tree.h (cxx_saved_binding): Declare.
+        (struct saved_scope): Adjust type of field 'old_binding'.
+        * decl.c (cxx_saved_binding_make): New macro.
+        (struct cxx_saved_binding): Define.
+        (store_bindings): Adjust prototype.  Use cxx_saved_binding to save
+        C++ bindings. 
+        (maybe_push_to_top_level): Adjust local variable type.
+        (pop_from_top_level): Likewise.
+       
+2003-03-04  Tom Tromey  <tromey@redhat.com>
+
+       * Make-lang.in (c++.tags): New target.
+
+2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Make-lang.in: Update.
+
+2003-03-03  Jason Merrill  <jason@redhat.com>
+
+       * decl.c (finish_enum): Do set the type in a template. Simplify.
+       * pt.c (tsubst_enum, tsubst_copy): Revert last patch.
+
+2003-03-03  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9878
+       * call.c (convert_class_to_reference): Correct conversion
+       sequences.
+       (reference_binding): Add ref_bound_directly_to_rvalue_p parameter.
+       (implicit_conversion): Adjust call to reference_binding.
+       (add_candidate): Change type of candidates parameter.
+       (add_function_candidate): Likewise.
+       (add_conv_candidate): Likewise.
+       (build_builtin_candidate): Likewise.
+       (add_builtin_candidate): Likewise.
+       (add_builtin_candidates): Likewise.
+       (add_template_candidate_real): Likewise.
+       (add_template_candidate): Likewise.
+       (add_template_conv_candidate): Likewise.
+       (build_user_type_conversion_1): Adjust accordingly.
+       (build_object_call): Likewise.
+       (build_conditional_expr): Likewise.
+       (add_candidates): Likewise.
+       (build_new_op): Likewise.
+       (convert_like_real): Use USER_CONV_CAND.  Use build_nop.
+       (build_new_method_call): Adjust calls to add_function_candidate.
+       (make_temporary_var_for_ref_to_temp): New function.
+       (initialize_reference): Add decl parameter.
+       * class.c (build_rtti_vtbl_entries): Use build_address and
+       build_nop.
+       * cp-tree.h (initialize_reference): Change prototype.
+       (make_temporary_var_for_ref_to_temp): New function.
+       (build_type_conversion): Change prototype.
+       (build_address): New function.
+       (build_nop): Likewise.
+       * cvt.c (cp_convert_to_pointer): Adjust call to
+       build_type_conversion.  Avoid indicating redundant NOP_EXPRs.
+       Use build_nop.
+       (convert_to_pointer_force): Use build_nop.
+       (build_up_reference): Use make_temporary_var_for_ref_to_temp.
+       (convert_to_reference): Adjust call to build_type_conversion.
+       (ocp_convert): Likewise.
+       (build_type_conversion): Remove for_sure parameter.
+       * decl.c (grok_reference_init): Use initialize_reference.
+       * typeck.c (build_address): New function.
+       (build_nop): Likewise.
+       (build_unary_op): Use them.
+       (build_ptrmemfunc): Tidy slightly.
+       (convert_for_initialization): Adjust call to
+       initialize_reference.
+       * typeck2.c (store_init_value): Remove #if 0'd code.
+       
+2003-03-03  Jason Merrill  <jason@redhat.com>
+
+       * decl.c (start_function): Clear DECL_NUM_STMTS.
+
+       * class.c (get_vtable_decl): Use vtbl_type_node.
+       (build_primary_vtable): Check for it.
+
+2003-03-02  Aldy Hernandez  <aldyh@redhat.com>
+
+       * decl.c (check_initializer): Check for vector_opaque_p.
+
+2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
+
+       * lang-specs.h (default_compilers): Add -no-integrated-cpp flag to
+         invoke an external cpp during compilation.
+
+2003-03-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * decl.c (duplicate_decls): Convert use of warning_with_decl() to
+       that of warning().
+       (start_decl): Likewise.
+       (start_function): Likewise.
+
+2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Make-lang.in (CXX_C_OBJS): Update.
+
+2003-02-28  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9892
+       * pt.c (instantiate_decl): Clear DECL_RTL for a VAR_DECL when
+       instantiating it.
+
+2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
+
+        * parser.c (cp_parser_init_declarator): Revert opaque
+        vector_opaque_p change.
+        Do not include target.h.
+
+2003-02-28  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9879
+       * cp-tree.h (build_zero_init): Add parameter.
+       * decl.c (cp_finish_decl): Adjust call.
+       * init.c (build_zero_init): Add nelts parameter.  Adjust recursive
+       calls.
+       (build_default_init): Add nelts parameter.  Adjust calls to
+       build_zero_init.
+       (build_new_1): Adjust call to build_default_init.
+       * typeck2.c (process_init_constructor): Adjust call to build_zero_init.
+       
+2003-02-26  Devang Patel  <dpatel@apple.com>
+
+       * decl.c (finish_enum): Merge two 'for' loops. Copy value node if required.
+       Postpone enum setting for template decls.
+       (build_enumerator): Delay copying value node until finish_enum (). Remove
+       #if 0'ed code.
+       * pt.c (tsubst_enum): Set TREE_TYPE and copy value node.
+       (tsubst_copy): Add check for enum type.
+       
+2003-02-25  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9683
+       * decl2.c (prune_vars_needing_no_initialization): Do not throw
+       away initializations for DECL_EXTERNAL VAR_DECLs.
+       (finish_file): Adjust accordingly.
+       * pt.c (instantiate_decl): Do not defer VAR_DECLs.
+
+2003-02-24 Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * decl.c (add_binding): Time TV_NAME_LOOKUP.
+       (push_class_binding): Likewise.
+       (set_namespace_binding): Likewise.
+
+2003-02-24  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9836
+       * cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): Do not skip from
+       specializations back to the main template.
+       * parser.c (cp_parser_diagnose_invalid_type_name):Adjust use.
+       * pt.c (resolve_typename_type): Likewise.
+
+2003-02-24  Jeffrey D. Oldham  <oldham@codesourcery.com>
+
+       PR c++/9778
+       * pt.c (tsubst_copy_and_build): For a templated function inside a
+       scope, process template arguments.
+
+2003-02-24  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/9602
+       * typeck2.c (abstract_virtuals_error): Don't check when
+       TYPE is still template parameter dependent.
+
+2003-02-23  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/5333
+       * cp-tree.h (CLASSTYPE_PRIMARY_TEMPLATE): New macro.
+       * parser.c (cp_parser_diagnose_invalid_type_name): Use it.
+       * pt.c (instantiate_class_template): Don't try to instantiate
+       dependent types.
+       (resolve_typename_type): Use CLASSTYPE_PRIMARY_TEMPLATE.
+       
+2003-02-21  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9749
+       * decl.c (grokdeclarator): Do not allow parameters with variably
+       modified types.
+
+2003-02-21  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * search.c (bfs_walk_grow): Remove. Fold into ...
+       (bfs_walk): ... here, fix fencepost error. Fix merge lossage
+       in previous patch.
+
+2003-02-20  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9729
+       * mangle.c (mangle_conv_op_name_for_type): Issue an error message
+       when the G++ 3.2 ABI prevents correct compilation.
+
+2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
+
+       Change base class access representation. Share virtual base
+       binfos.
+       * cp/call.c (build_special_member_call): Remove binfo_for_vbase
+       call.
+       * cp/class.c (build_base_path): Likewise.
+       (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
+       (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
+       (make_new_vtable): Adjust.
+       (force_canonical_binfo_r): Delete.
+       (force_canonical_binfo): Delete.
+       (mark_primary_virtual_base): Delete.
+       (dfs_unshared_virtual_bases): Delete.
+       (mark_primary_bases): Adjust.
+       (maybe_warn_about_overly_private_class): Adjust.
+       (dfs_base_derived_from): Delete.
+       (base_derived_from): Follow the inheritance chain.
+       (struct find_final_overrider_data): Add vpath member.
+       (dfs_find_final_overrider): Adjust.
+       (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
+       (find_final_overrider): Adjust.
+       (update_vtable_entry_for_fn): Adjust.
+       (modify_all_vtables): Adjust.
+       (walk_subobject_offsets): Adjust.
+       (layout_nonempty_base_or_field): Adjust.
+       (layout_empty_base): Remove last parameter. Adjust.
+       (build_base_field): Adjust.
+       (build_base_fields): Adjust.
+       (propagate_binfo_offsets): Remove last parameter. Adjust.
+       (dfs_set_offset_for_unshared_vbases): Delete.
+       (layout_virtual_bases): Adjust.
+       (finish_struct_1): Adjust.
+       (init_class_processing): Don't init access nodes.
+       (dfs_get_primary_binfo): Delete.
+       (get_primary_binfo): Adjust.
+       (dump_class_hierarchy_r): Remove most derived arg, add IGO
+       parameter. Adjust.
+       (dump_class_hierarchy): Adjust.
+       (finish_vtbls): Adjust.
+       (get_original_base): Delete.
+       (build_vtt_inits): Adjust.
+       (dfs_build_secondary_vptr_vtt_inits): Adjust.
+       (dfs_ctor_vtable_bases_queue_p): Adjust.
+       (build_ctor_vtbl_group): Adjust.
+       (dfs_accumulate_vtbl_inits): Adjust.
+       (build_vtbl_initializer): Adjust.
+       (build_vbase_offset_vtbl_entries): Adjust.
+       (add_vcall_offset_vtbl_entries_1): Adjust.
+       * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
+       (access_*_node): Remove.
+       (CANONICAL_BINFO): Delete.
+       (BINFO_UNSHARED_MARKED): Remove.
+       (BINFO_MARKED): Set LANG_FLAG_0 directly.
+       (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
+       (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
+       (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
+       Delete.
+       (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
+       (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
+       (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
+       Delete.
+       (BINFO_DEPENDENT_BASE_P): New.
+       (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
+       index.
+       (markedp, unmarkedp): Adjust.
+       (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
+       dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
+       find_vbase_instance, binfo_for_vbase): Delete.
+       (copied_binfo, original_binfo): Declare.
+       (finish_base_specifier): Add virtual_p arg.
+       (unshare_base_binfos): Delete.
+       (copy_base_binfos): Declare.
+       (reverse_path): Delete.
+       * cp/decl.c (xref_basetypes): Access and virtuality passed
+       differently. Don't copy direct base binfos here. Call
+       copy_base_binfos.
+       * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
+       (initialize_vtbl_ptrs): Adjust.
+       (expand_member_init): Adjust.
+       * cp/parser.c (cp_parser_base_specifier): Adjust.
+       * cp/pt.c (instantiate_class_template): Adjust.
+       (get_template_base_recursive): Adjust.
+       * cp/rtti.c (get_pseudo_ti_init): Adjust.
+       (get_pseudo_ti_desc): Adjust.
+       * cp/tree.c (unshare_base_binfos): Rename to ...
+       (copy_base_binfos): ... here, reimplement.
+       (make_binfo): Set BINFO_DEPENDENT_BASE_P.
+       (reverse_path): Remove.
+       * cp/typeck.c (get_delta_difference): Adjust error messages.
+       * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
+       * cp/search.c (lookup_base_r): Adjust.
+       (dynamic_cast_base_recurse): Adjust.
+       (canonical_binfo): Remove.
+       (dfs_canonical_queue): Remove.
+       (dfs_assert_unmarked_p): Remove.
+       (assert_canonical_unmarked): Remove.
+       (shared_marked_p, shared_unmarked_p): Remove.
+       (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
+       (dfs_access_in_type): Adjust.
+       (access_in_type): Adjust.
+       (dfs_accessible_queue_p): Adjust.
+       (dfs_accessible_p): Adjust.
+       (is_subobject_of_p_1, is_subobject_of_p): Remove.
+       (struct lookup_field_info): Remove from_dep_base_p field.
+       (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
+       (lookup_field_r): Remove dependent base code.
+       (lookup_member): Likewise.
+       (dfs_walk, dfs_walk_real): Add access arg to queue fn.
+       (dfs_unmarked_real_bases_queue_p): Remove.
+       (dfs_marked_real_bases_queue_p): Remove.
+       (dfs_skip_vbases): Remove.
+       (dfs_get_pure_virtuals): Adjust.
+       (markedp, unmarkedp): Adjust.
+       (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
+       (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
+       (dfs_unmark): Adjust.
+       (dfs_get_vbase_types):Remove.
+       (dfs_build_inheritance_graph_order): Remove.
+       (get_vbase_types): Remove
+       (dfs_find_vbase_instance): Remove.
+       (find_vbase_instance): Remove.
+       (dfs_debug_unmarkedp): Adjust.
+       (dependent_base_p): Remove.
+       (dfs_push_type_decls): Adjust.
+       (dfs_push_decls): Adjust.
+       (dfs_no_overlap_yet): Adjust.
+       (copied_binfo): New function.
+       (original_binfo): New function.
+       (binfo_for_vbase): Remove.
+
+2003-02-18  Zack Weinberg  <zack@codesourcery.com>
+
+       * cp/search.c (grow_bfs_bases): New subroutine of bfs_walk.
+       (bfs_walk): Rewritten using circular queue of BINFO_BASETYPES
+       vectors, for speed.
+
+2003-02-18  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9704
+       * class.c (layout_class_type): In the 3.2 ABI, take into account
+       trailing bit fields when computing CLASSTYPE_SIZE_UNIT.
+
+2003-02-18  Matt Austern <austern@apple.com>
+       
+       * cp/cp-lang.c: Change lang hooks so that final_write_globals does
+       nothing for C++.
+       * cp/decl.c (wrapup_globals_for_namespace): Remove special
+       handling of global namespace.
+       
+2003-02-18  Geoffrey Keating  <geoffk@apple.com>
+
+       * cp-tree.h (rid_to_yy): Delete.
+       (C_RID_YYCODE): Delete.
+       (finish_file): Delete redundant declaration.
+
+2003-02-18  Jason Merrill  <jason@redhat.com>
+
+       PR c++/9623
+       * decl.c (reshape_init): Don't mess with initializer labels.
+
+       PR c++/9485
+       * parser.c (cp_parser_postfix_expression): Set idk properly for
+       object->scope::member.
+
+2003-02-18  Ben Elliston  <bje@redhat.com>
+
+       PR other/7350
+       * decl.c (duplicate_decls): Fix typo in comment.
+
+2003-02-17  Michael Elizabeth Chastain <mec@shout.net>
+
+       PR debug/9717
+       * class.c (build_base_field): Mark fields for base classes with
+       DECL_IGNORED_P.
+
+2003-02-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/9457
+       * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Substitute
+       CONSTRUCTOR_ELTS only once.
+
+2003-02-16  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/9459
+       * error.c (dump_type_prefix): Handle TYPEOF_TYPE.
+       (dump_type_suffix): Likewise.
+
+2003-02-14  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * search.c: ANSIfy function declarations and definitions.
+       * cp-tree.h (lookup_field, lookup_member): Last parameter is a bool.
+       * call.c (build_method_call, resolve_scoped_fn_name,
+       build_java_interface_fn_ref): Adjust lookup_field, lookup_member
+       calls.
+       * class.c (handle_using_decl): Likewise.
+       * decl.c (make_typename_type, make_unmound_class_template,
+       start_decl, compute_array_index_type): Likewise.
+       * decl2.c (build_expr_from_tree, build_call_from_tree): Likewise.
+       * init.c (expand_member_init, build_member_call): Likewise.
+       * pt.c (tsubst_copy, tsubst_copy_and_build, do_decl_instantiation,
+       resolve_typename_type): Likewise.
+       * typeck.c (lookup_destructor, finish_class_member_access_exprm
+       build_prememfunc_access_expr): Likewise.
+
+2003-02-13  Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+       * decl2.c: Include "timevar.h".
+       (namespace_ancestor): Time name lookup.
+       (add_using_namespace): Likewise.
+       (lookup_using_namespace): Likewise.
+       (qualified_lookup_using_namespace): Likewise.
+       (decl_namespace): Likewise.
+       (lookup_arg_dependent): Likewise.
+       * lex.c (do_identifier): Likewise.
+       (do_scoped_id): Likewise.
+       * pt.c (lookup_template_class): Likewise.
+
+2003-02-14   Andrew Pinski <pinskia@physics.uc.edu>
+
+        * decl.c: (define_label): Fix warning for return 0 instead of NULL.
+       
+2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+
+       * decl.c: Include "timevar.h".
+       (poplevel): Time name lookup.
+       (find_binding): Likewise.
+       (push_namespace): Likewise.
+       (pop_nested_namespace): Likewise.
+       (store_bindings): Likewise.
+       (maybe_push_to_top_level): Likewise.
+       (pop_from_top_level): Likewise.
+       (push_local_name): Likewise.
+       (pushtag): Likewise.
+       (pushdecl): Likewise.
+       (pushdecl_with_scope): Likewise.
+       (pushdecl_namespace_level): Likewise.
+       (pushdecl_top_level): Likewise.
+       (pushdecl_class_level): Likewise.
+       (push_class_level_binding): Likewise.
+       (push_using_decl): Likewise.
+       (push_using_directive): Likewise.
+       (push_overloaded_decl): Likewise.
+       (lookup_label): Likewise.
+       (define_label): Likewise.
+       (lookup_tag): Likewise.
+       (lookup_tag_reverse): Likewise.
+       (lookup_namespace_name): Likewise.
+       (select_decl): Likewise.
+       (unqualified_namespace_lookup): Likewise.
+       (lookup_name_real): Likewise.
+       (lookup_name_current_level): Likewise.
+       (lookup_type_current_level): Likewise.
+       (maybe_inject_for_scope_var): Likewise.
+       (xref_tag): Likewise.
+
+       * Make-lang.in (cp/decl.o): Add dependency on timevar.h
+       
+2003-02-12  Phil Edwards  <pme@gcc.gnu.org>
+
+       * decl.c (build_enumerator):  Remove unneeded test.
+
+2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * cp-tree.h (struct lang_type_header): Make all fields unsigned
+       char.
+
+2003-02-03  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/7129
+       * call.c (z_candidate): Add args.
+       (convert_class_to_reference): Set it.
+       (implicit_conversion): Tidy.
+       (add_candidate): Add args parameter.
+       (add_function_candidate): Adjust call to add_candidate.
+       (add_conv_candidate): Likewise.
+       (build_builtin_candidate): Likewise.
+       (build_user_type_conversion_1): Eliminate wasteful tree_cons
+       usage.
+       (build_new_function_call): Likewise.
+       (build_object_call): Likewise.
+       (add_candidates): New function.
+       (build_new_op): Use it.
+       (covert_like_real): Adjust call to build_over_call.
+       (build_over_call): Remove args parameter.
+       * operators.def: Add <?= and >?=.
+
+2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
+
+       * typeck.c (build_indirect_ref): Don't check flag_volatile.
+
+2003-01-31  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/8849
+       * pt.c (resolve_overloaded_unification): Handle FUNCTION_DECL.
+
+2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
+       BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
+       (BINFO_LANG_ELTS): New #define.
+       * tree.c (make_binfo): Use BINFO_LANG_ELTS.
+
+2003-01-30  Geoffrey Keating  <geoffk@apple.com>
+
+       * cp/Make-lang.in: Remove -Wno-error from cp/decl.o.
+
+2003-01-30  Mark Mitchell  <mark@codesourcery.com>
+
+       * class.c (check_field_decls): Only check C_TYPE_FIELDS_READONLY
+       for class types.
+       * cp-tree.h (C_TYPE_FIELDS_READONLY): Use a lang-specific bit
+       rather than TYPE_LANG_FLAG_0.
+       (TYPE_BUILT_IN): Remove.
+       (TYPE_DEPENDENT_P): New macro.
+       (TYPE_DEPENDENT_P_VALID): Likewise.
+       (lang_type_class): Add fields_readonly.
+       * decl.c (record_builtin_type): Don't set TYPE_BUILT_IN.
+       * pt.c (dependent_type_p_r): New function, split out from ...
+       (dependent_type_p): ... here.  Memoize results.
+       * search.c (dependent_base_p): Use dependent_type_p, not
+       uses_template_parms.
+       * typeck.c (build_modify_expr): Only check C_TYPE_FIELDS_READONLY
+       for class types.
+
+2003-01-29  Mark Mitchell  <mark@codesourcery.com>
+
+       * call.c (build_field_call): Use build_new_op, not build_opfncall.
+       (prep_operand): New function.
+       (build_new_op): Use it.  Remove dead code.
+       * class.c (pushclass): Change "modify" parameter type from int to
+       bool.
+       (currently_open_class): Use same_type_p, not pointer equality.
+       (push_nested_class): Adjust calls to pushclass, remove modify
+       parameter.
+       * cp-tree.h (INTEGRAL_OR_ENUMERATION_TYPE_P): New macro.
+       (pushclass): Change prototype.
+       (push_nested_class): Likewise.
+       (grokoptypename): Remove.
+       (build_opfncall): Remove.
+       (value_dependent_expression_p): Declare.
+       (resolve_typename_type): Likewise.
+       (resolve_typename_type_in_current_instantiation): Likewise.
+       (enter_scope_of): Remove.
+       (tsubst): Remove.
+       (tsubst_expr): Likewise.
+       (tsubst_copy): Likewise.
+       (tsubst_copy_and_build): Likewise.
+       * decl.c (warn_about_implicit_typename_lookup): Remove.
+       (finish_case_label): Return error_mark_node for erroneous labels.
+       (start_decl): Adjust calls to push_nested_class.
+       (grokfndecl): Call push_scope/pop_scope around call to
+       duplicate_decls.
+       (grokdeclarator): Do not call tsubst.
+       (start_function): Adjust calls to push_nested_class.
+       * decl2.c (grok_array_decl): Use build_new_op, not build_opfncall.
+       (check_classfn): Use push_scope/pop_scope around type comparisions.
+       (grokoptypename): Remove.
+       (push_sscope): Adjust call to push_nested_class.
+       * error.c (dump_type): Show cv-qualification of typename types.
+       * init.c (build_member_call): Use build_new_op, not
+       build_opfncall.
+       * method.c (build_opfncall): Remove.
+       * parser.c (cp_parser): Add allow_non_constant_expression_p and
+       non_constant_expression_p.
+       (cp_parser_constant_expression): Adjust prototype.
+       (cp_parser_resolve_typename_type): Remove.
+       (cp_parser_non_constant_expression): New function.
+       (cp_parser_non_constant_id_expression): Likewise.
+       (cp_parser_new): Set allow_non_constant_expression_p and
+       non_constant_expression_p.
+       (cp_parser_primary_expression): Reject `this' and `va_arg' in
+       constant-expressions.  Note that dependent names aren't really
+       constant.
+       (cp_parser_postfix_expression): Reject conversions to non-integral
+       types in constant-expressions.  Neither are increments or
+       decrements.
+       (cp_parser_unary_expression): Reject increments and decrements in
+       constant-expressions.
+       (cp_parser_direct_new_declarator): Adjust call to
+       cp_parser_constant_expression.
+       (cp_parser_cast_expression): Reject conversions to non-integral
+       types in constant-expressions.
+       (cp_parser_assignment_expression): Rejects assignments in
+       constant-expressions.
+       (cp_parser_expression): Reject commas in constant-expressions.
+       (cp_parser_labeled_statement): Adjust call to
+       cp_parser_constant_expression.
+       (cp_parser_direct_declarator): Simplify array bounds, even in
+       templates, when they are non-dependent.  Use
+       resolve_typename_type, not cp_parser_resolve_typename_type.
+       (cp_parser_class_head): Use resolve_typename_type, not
+       cp_parser_resolve_typename_type.
+       (cp_parser_member_declaration): Adjust call to
+       cp_parser_constant_expression.
+       (cp_parser_constant_initializer): Likewise.
+       (cp_parser_constructor_declarator): Use resolve_typename_type, not
+       cp_parser_resolve_typename_type.
+       (cp_parser_late_parsing_default_args): Adjust call to
+       push_nested_class.
+       * pt.c (tsubst): Give it internal linkage.
+       (tsubst_expr): Likewise.
+       (tsubst_copy): Likewise.
+       (tsubst_copy_and_build): Likewise.
+       (push_access_scope_real): Likewise.
+       (tsubst_friend_class): Likewise.
+       (instantiate_class_template): Adjust call to pushclass.
+       (value_dependent_expression_p): Give it external linkage.
+       Robustify.
+       (resolve_typename_type): New function.
+       * semantics.c (finish_call_expr): Use build_new_op, not
+       build_opfncall.
+       (begin_constructor_declarator): Remove.
+       (begin_class_definition): Adjust call to pushclass.
+       (enter_scope_of): Remove.
+       * typeck.c (comptypes): Resolve typename types as appropriate.
+       (build_x_indirect_ref): Use build_new_op, not build_opfncall.
+       (build_x_compound_expr): Likewise.
+       (build_modify_expr): Likewise.
+       (build_x_modify_expr): Likewise.
+       * typeck2.c (build_x_arrow): Likewise.
+       
+2003-01-29  Fariborz Jahanian  <fjahanian@apple.com>
+
+        * pt.c (last_pending_template) Declare GTY().
+
+2003-01-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       PR c++/8591
+       * parser.c (cp_parser_elaborated_type_specifier): Convert
+       TEMPLATE_DECL to TYPE_DECL only when processing template friends.
+       (cp_parser_maybe_treat_template_as_class): Remove redundant tests.
+
+2003-01-28  Nathan Sidwell  <nathan@codesourcery.com>
+
+       PR c++/9437
+       * pt.c (unify): Don't unify '*T' with 'U C::*'.
+
+       PR c++/3902
+       * parser.c (cp_parser_decl_specifier_seq): Cannot have constructor
+       inside a declarator.
+
 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
 
        * class.c (update_vtable_entry_for_fn): Add index parameter.