OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR c++/48481
[pf3gnuchains/gcc-fork.git]
/
gcc
/
cp
/
name-lookup.c
diff --git
a/gcc/cp/name-lookup.c
b/gcc/cp/name-lookup.c
index
18e3441
..
2136df6
100644
(file)
--- a/
gcc/cp/name-lookup.c
+++ b/
gcc/cp/name-lookup.c
@@
-4725,7
+4725,11
@@
add_function (struct arg_lookup *k, tree fn)
else if (fn == k->functions)
;
else
else if (fn == k->functions)
;
else
- k->functions = build_overload (fn, k->functions);
+ {
+ k->functions = build_overload (fn, k->functions);
+ if (TREE_CODE (k->functions) == OVERLOAD)
+ OVL_ARG_DEPENDENT (k->functions) = true;
+ }
return false;
}
return false;
}
@@
-5135,8
+5139,8
@@
arg_assoc (struct arg_lookup *k, tree n)
}
else if (TREE_CODE (n) == OVERLOAD)
{
}
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;
}
return true;
}