decl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare old and new types.
* decl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare old and new types. From-SVN: r19816
This commit is contained in:
parent
c7449f2bc8
commit
f77f4f33ad
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
Sun May 17 12:32:08 1998 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* decl.c (duplicate_decls): Use CANONICAL_TYPE_VARIANT to compare
|
||||
old and new types.
|
||||
|
||||
* pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the
|
||||
canonical type.
|
||||
|
||||
|
|
|
@ -2926,7 +2926,7 @@ duplicate_decls (newdecl, olddecl)
|
|||
TREE_TYPE (newdecl) = TREE_TYPE (olddecl) = newtype;
|
||||
|
||||
/* Lay the type out, unless already done. */
|
||||
if (oldtype != TREE_TYPE (newdecl)
|
||||
if (newtype != CANONICAL_TYPE_VARIANT (oldtype)
|
||||
&& TREE_TYPE (newdecl) != error_mark_node
|
||||
&& !(processing_template_decl && uses_template_parms (newdecl)))
|
||||
layout_type (TREE_TYPE (newdecl));
|
||||
|
|
Loading…
Add table
Reference in a new issue