aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-04-27 11:56:56 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-04-27 11:56:56 -0400
commitc224bdc1ee1b93c4a75b9927d9c961fb4a65131a (patch)
treed0be76a4429b9c32a6c02e886627781e4e1cfd62 /gcc/cp/class.c
parent9e0541d9c0b2842b738a99a70673be0752ee591d (diff)
downloadgcc-c224bdc1ee1b93c4a75b9927d9c961fb4a65131a.zip
gcc-c224bdc1ee1b93c4a75b9927d9c961fb4a65131a.tar.gz
gcc-c224bdc1ee1b93c4a75b9927d9c961fb4a65131a.tar.bz2
class.c (resolve_address_of_overloaded_function): Don't change OVERLOAD to TREE_LIST.
* class.c (resolve_address_of_overloaded_function): Don't change OVERLOAD to TREE_LIST. * pt.c (print_candidates_1): Remove nonsensical assert. From-SVN: r173037
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 fa5e00f..9af238b 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;
}