mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-09 19:11:14 +08:00
* pt.c (tsubst): Always copy BINFO_BASETYPES.
From-SVN: r20158
This commit is contained in:
parent
9045f690f8
commit
1ceaad38df
@ -1,3 +1,7 @@
|
||||
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>
|
||||
|
||||
* tree.c (layout_basetypes): If we change TYPE_SIZE, change
|
||||
|
@ -4830,16 +4830,14 @@ tsubst (t, args, in_decl)
|
||||
case TREE_VEC:
|
||||
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);
|
||||
|
||||
/* Make sure type isn't a typedef copy. */
|
||||
type = BINFO_TYPE (TYPE_BINFO (type));
|
||||
|
||||
if (type == TREE_TYPE (t))
|
||||
return t;
|
||||
|
||||
TREE_TYPE (t) = complete_type (type);
|
||||
if (IS_AGGR_TYPE (type))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user