summaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 21:35:17 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 21:35:17 +0000
commit1f07118efd627bef5aed88db1f9d840ce6ab743f (patch)
treedb906e8fcd48502db7eacdfb8c20e1ca0ab41374 /gcc/cp/search.c
parent70269a57a8e4b7428eff50077451d4a9648afe70 (diff)
downloadgcc-1f07118efd627bef5aed88db1f9d840ce6ab743f.tar.gz
* tree.c (get_fns): Split out from get_first_fn.
* cp-tree.h: Declare it. * search.c (shared_member_p): Use it. * semantics.c (finish_qualified_id_expr): Simplify. (finish_id_expression): Simplify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 772ae3b1fbe..11011e7f334 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -973,6 +973,7 @@ shared_member_p (tree t)
return 1;
if (is_overloaded_fn (t))
{
+ t = get_fns (t);
for (; t; t = OVL_NEXT (t))
{
tree fn = OVL_CURRENT (t);