From c7449f2bc8acf2cc751e402550bf92340362b06c Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 17 May 1998 12:48:32 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/pt.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0d8f22e2d4a..69e6fc68b31 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ Sun May 17 12:32:08 1998 Jason Merrill + * 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 diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e9938770d6e..d1793279b8d 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; -- 2.30.2