Commit 1ceaad38 by Jason Merrill Committed by Jason Merrill

* pt.c (tsubst): Always copy BINFO_BASETYPES.

From-SVN: r20158
parent 9045f690
1998-05-31 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (tsubst): Always copy BINFO_BASETYPES.
1998-05-29 scott snyder <snyder@d0sgif.fnal.gov> 1998-05-29 scott snyder <snyder@d0sgif.fnal.gov>
* tree.c (layout_basetypes): If we change TYPE_SIZE, change * tree.c (layout_basetypes): If we change TYPE_SIZE, change
......
...@@ -4830,16 +4830,14 @@ tsubst (t, args, in_decl) ...@@ -4830,16 +4830,14 @@ tsubst (t, args, in_decl)
case TREE_VEC: case TREE_VEC:
if (type != NULL_TREE) if (type != NULL_TREE)
{ {
/* A binfo node. */ /* A binfo node. We always need to make a copy, of the node
itself and of its BINFO_BASETYPES. */
t = copy_node (t); t = copy_node (t);
/* Make sure type isn't a typedef copy. */ /* Make sure type isn't a typedef copy. */
type = BINFO_TYPE (TYPE_BINFO (type)); type = BINFO_TYPE (TYPE_BINFO (type));
if (type == TREE_TYPE (t))
return t;
TREE_TYPE (t) = complete_type (type); TREE_TYPE (t) = complete_type (type);
if (IS_AGGR_TYPE (type)) if (IS_AGGR_TYPE (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