diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-08 06:08:21 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-08 06:08:21 +0000 |
commit | 0a8b74e0c6f3137ffa21c2907164e8bc160c9fcd (patch) | |
tree | 1a7949b398e708ca97d0a00a9b02f404810cbde5 /gcc/cp/name-lookup.c | |
parent | b75fa3a6b883f8aac98675d59cc94729321aaebc (diff) | |
download | gcc-0a8b74e0c6f3137ffa21c2907164e8bc160c9fcd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172164 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 696a8f5fdcb..2136df62118 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; } |