* call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.
From-SVN: r17898
This commit is contained in:
parent
1398405bf8
commit
2dbfb4181c
@ -1,3 +1,7 @@
|
||||
Fri Feb 13 01:36:42 1998 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.
|
||||
|
||||
Fri Feb 13 00:21:59 1998 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* cp-tree.h: Add access_protected_virtual_node.
|
||||
|
@ -3212,7 +3212,11 @@ standard_conversion (to, from, expr)
|
||||
}
|
||||
else if (IS_AGGR_TYPE (to) && IS_AGGR_TYPE (from)
|
||||
&& DERIVED_FROM_P (to, from))
|
||||
conv = build_conv (BASE_CONV, to, conv);
|
||||
{
|
||||
if (TREE_CODE (conv) == RVALUE_CONV)
|
||||
conv = TREE_OPERAND (conv, 0);
|
||||
conv = build_conv (BASE_CONV, to, conv);
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user