aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-05-17 12:48:32 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-05-17 08:48:32 -0400
commitc7449f2bc8acf2cc751e402550bf92340362b06c (patch)
tree08aa67604496e8161cb73775a708ca2034fc85d2 /gcc
parent463d7c5d32faf19efbd7ff39815a7b82e0b889e6 (diff)
downloadgcc-c7449f2bc8acf2cc751e402550bf92340362b06c.zip
gcc-c7449f2bc8acf2cc751e402550bf92340362b06c.tar.gz
gcc-c7449f2bc8acf2cc751e402550bf92340362b06c.tar.bz2
pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the canonical type.
* pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the canonical type. From-SVN: r19815
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/pt.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0d8f22e..69e6fc6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
Sun May 17 12:32:08 1998 Jason Merrill <jason@yorick.cygnus.com>
+ * pt.c (tsubst): Make sure that BINFO_TYPE of new binfos is the
+ canonical type.
+
* call.c (build_over_call): Don't use IS_SIGNATURE on a namespace.
Fri May 15 20:28:00 1998 Jason Merrill <jason@yorick.cygnus.com>
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index e993877..d179327 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -4741,6 +4741,9 @@ tsubst (t, args, in_decl)
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;