summaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-27 15:56:56 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-27 15:56:56 +0000
commit9ef934512b9d9cfff6fcc4ea5ccf699641f77914 (patch)
treed0be76a4429b9c32a6c02e886627781e4e1cfd62 /gcc/cp/class.c
parentaf3481d9f1db23f583e7c5b686456c7c0d295339 (diff)
downloadgcc-9ef934512b9d9cfff6fcc4ea5ccf699641f77914.tar.gz
* class.c (resolve_address_of_overloaded_function): Don't
change OVERLOAD to TREE_LIST. * pt.c (print_candidates_1): Remove nonsensical assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173037 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index fa5e00fcb1f..9af238b25e8 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -6514,14 +6514,7 @@ resolve_address_of_overloaded_function (tree target_type,
DECL_NAME (OVL_CURRENT (overload)),
target_type);
- /* print_candidates expects a chain with the functions in
- TREE_VALUE slots, so we cons one up here (we're losing anyway,
- so why be clever?). */
- for (; overload; overload = OVL_NEXT (overload))
- matches = tree_cons (NULL_TREE, OVL_CURRENT (overload),
- matches);
-
- print_candidates (matches);
+ print_candidates (overload);
}
return error_mark_node;
}