aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>2001-10-13 13:24:34 +0000
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>2001-10-13 13:24:34 +0000
commit11e74ea6c6c709e8e6329bdfe7d121bfa100cf29 (patch)
tree8f939dad1cc78f6389ec45ed623f2d6ea2c80aa6 /gcc/cp/pt.c
parentf5d47abdf7cebc497d2ee475dfc2e00e8125e879 (diff)
downloadgcc-11e74ea6c6c709e8e6329bdfe7d121bfa100cf29.zip
gcc-11e74ea6c6c709e8e6329bdfe7d121bfa100cf29.tar.gz
gcc-11e74ea6c6c709e8e6329bdfe7d121bfa100cf29.tar.bz2
cp-tree.h (TYPE_BINFO): Update comment.
* cp-tree.h (TYPE_BINFO): Update comment. (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro. (TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info. (TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS. (copy_type): Prototype new function. * lex.c (copy_lang_decl): Gather tree node statistics. (copy_lang_type): New function. (copy_type): Likewise. (cp_make_lang_type): Create lang_type for BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE and BOUND_TEMPLATE_TEMPLATE_PARM. * pt.c (tsubst): Use copy_type instead of copy_node. * search.c (lookup_field_1): Ignore TYPENAME_TYPE. From-SVN: r46244
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 229bccc..cd68629 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6429,7 +6429,7 @@ tsubst (t, args, complain, in_decl)
}
else
{
- r = copy_node (t);
+ r = copy_type (t);
TEMPLATE_TYPE_PARM_INDEX (r)
= reduce_template_parm_level (TEMPLATE_TYPE_PARM_INDEX (t),
r, levels);