diff options
author | Jason Merrill <jason@redhat.com> | 2011-04-08 02:08:21 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-04-08 02:08:21 -0400 |
commit | b06a1f50c5030b27e307c86ab49eb16a6b32fc56 (patch) | |
tree | 1a7949b398e708ca97d0a00a9b02f404810cbde5 /gcc/cp/tree.c | |
parent | 3a2cb4d037cc66a0b6567d944cbc9450adf11814 (diff) | |
download | gcc-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/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 014986d..3594ae4 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1461,8 +1461,6 @@ build_overload (tree decl, tree chain) { if (! chain && TREE_CODE (decl) != TEMPLATE_DECL) return decl; - if (chain && TREE_CODE (chain) != OVERLOAD) - chain = ovl_cons (chain, NULL_TREE); return ovl_cons (decl, chain); } |