aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/name-lookup.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-04-08 02:08:21 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-04-08 02:08:21 -0400
commitb06a1f50c5030b27e307c86ab49eb16a6b32fc56 (patch)
tree1a7949b398e708ca97d0a00a9b02f404810cbde5 /gcc/cp/name-lookup.c
parent3a2cb4d037cc66a0b6567d944cbc9450adf11814 (diff)
downloadgcc-b06a1f50c5030b27e307c86ab49eb16a6b32fc56.zip
gcc-b06a1f50c5030b27e307c86ab49eb16a6b32fc56.tar.gz
gcc-b06a1f50c5030b27e307c86ab49eb16a6b32fc56.tar.bz2
re PR c++/48481 (C++ overloading memory hog)
PR c++/48481 * tree.c (build_overload): Allow an unwrapped FUNCTION_DECL at the end of the chain. * pt.c (dependent_template_p): Use OVL_CURRENT/NEXT. (iterative_hash_template_arg): Likewise. From-SVN: r172164
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r--gcc/cp/name-lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 696a8f5..2136df6 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -5139,8 +5139,8 @@ arg_assoc (struct arg_lookup *k, tree n)
}
else if (TREE_CODE (n) == OVERLOAD)
{
- for (; n; n = OVL_CHAIN (n))
- if (arg_assoc_type (k, TREE_TYPE (OVL_FUNCTION (n))))
+ for (; n; n = OVL_NEXT (n))
+ if (arg_assoc_type (k, TREE_TYPE (OVL_CURRENT (n))))
return true;
}