Commit 47898a19 by Jason Merrill Committed by Jason Merrill

* call.c (add_builtin_candidates): Handle overloaded conversion ops.

From-SVN: r25663
parent a5d753c0
1999-03-09 Jason Merrill <jason@yorick.cygnus.com>
* call.c (add_builtin_candidates): Handle overloaded conversion ops.
1999-03-09 Mark Mitchell <mark@markmitchell.com> 1999-03-09 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (flag_access_control): Declare. * cp-tree.h (flag_access_control): Declare.
......
...@@ -1868,7 +1868,7 @@ add_builtin_candidates (candidates, code, code2, fnname, args, flags) ...@@ -1868,7 +1868,7 @@ add_builtin_candidates (candidates, code, code2, fnname, args, flags)
; ;
else if (IS_AGGR_TYPE (argtypes[i])) else if (IS_AGGR_TYPE (argtypes[i]))
{ {
tree convs = lookup_conversions (argtypes[i]); tree convs;
if (i == 0 && code == MODIFY_EXPR && code2 == NOP_EXPR) if (i == 0 && code == MODIFY_EXPR && code2 == NOP_EXPR)
return candidates; return candidates;
...@@ -1890,7 +1890,7 @@ add_builtin_candidates (candidates, code, code2, fnname, args, flags) ...@@ -1890,7 +1890,7 @@ add_builtin_candidates (candidates, code, code2, fnname, args, flags)
for (; convs; convs = TREE_CHAIN (convs)) for (; convs; convs = TREE_CHAIN (convs))
{ {
type = TREE_TYPE (TREE_TYPE (TREE_VALUE (convs))); type = TREE_TYPE (TREE_TYPE (OVL_CURRENT (TREE_VALUE (convs))));
if (i == 0 && ref1 if (i == 0 && ref1
&& (TREE_CODE (type) != REFERENCE_TYPE && (TREE_CODE (type) != REFERENCE_TYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment