diff options
| author | Mark Mitchell <mark@codesourcery.com> | 2002-06-25 15:35:27 +0000 |
|---|---|---|
| committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-06-25 15:35:27 +0000 |
| commit | da15dae6f5381cc92e8149ae3da488bb2e1cb843 (patch) | |
| tree | 4ca1f7c859dc3343629d8f2edb008c7742b347f6 /gcc/cp/class.c | |
| parent | 16b460352a7af477072fb686f3def6388edefd92 (diff) | |
| download | gcc-da15dae6f5381cc92e8149ae3da488bb2e1cb843.zip gcc-da15dae6f5381cc92e8149ae3da488bb2e1cb843.tar.gz gcc-da15dae6f5381cc92e8149ae3da488bb2e1cb843.tar.bz2 | |
call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
* call.c (build_op_delete_call): Use BASELINK_FUNCTIONS.
* class.c (handle_using_decl): Likewise.
(instantiate_type): Likewise.
* cp-tree.h (BASELINK_FUNCTIONS): New macro.
(xref_basetypes): Change prototype.
(begin_mem_initializers): New function.
(get_overloaded_fn): Likewise.
* decl.c (xref_basetypes): Simplify.
* error.c (dump_expr): Use BASELINK_FUNCTIONS.
* init.c (build_offset_ref): Likewise.
* parse.y (base_init): Use begin_mem_initializers().
(structsp): Adjust call to xref_basetypes.
* pt.c (determine_specialization): Use BASELINK_FUNCTIONS.
(instantiate_class_template): Adjust call to xref_basetypes.
* semantics.c (begin_mem_initializers): New function.
* tree.c (is_overloaded_fn): Use BASELINK_FUNCTIONS.
(really_overlaoded_fn): Likewise.
(get_overloaded_fn): New function.'
(get_first_fn): USe BASELINK_FUNCTIONS.
From-SVN: r54989
Diffstat (limited to 'gcc/cp/class.c')
| -rw-r--r-- | gcc/cp/class.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 0577c76..aa3caa1 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1235,7 +1235,7 @@ handle_using_decl (using_decl, t) if (BASELINK_P (fdecl)) /* Ignore base type this came from. */ - fdecl = TREE_VALUE (fdecl); + fdecl = BASELINK_FUNCTIONS (fdecl); old_value = IDENTIFIER_CLASS_VALUE (name); if (old_value) @@ -6139,7 +6139,7 @@ instantiate_type (lhstype, rhs, flags) case OFFSET_REF: rhs = TREE_OPERAND (rhs, 1); if (BASELINK_P (rhs)) - return instantiate_type (lhstype, TREE_VALUE (rhs), + return instantiate_type (lhstype, BASELINK_FUNCTIONS (rhs), flags | allow_ptrmem); /* This can happen if we are forming a pointer-to-member for a @@ -6175,7 +6175,7 @@ instantiate_type (lhstype, rhs, flags) /* Now we should have a baselink. */ my_friendly_assert (BASELINK_P (rhs), 990412); - return instantiate_type (lhstype, TREE_VALUE (rhs), flags); + return instantiate_type (lhstype, BASELINK_FUNCTIONS (rhs), flags); case CALL_EXPR: /* This is too hard for now. */ |
