cp-tree.h (TYPE_BINFO): Update comment.
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Sat, 13 Oct 2001 13:24:34 +0000 (13:24 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Sat, 13 Oct 2001 13:24:34 +0000 (13:24 +0000)
commit11e74ea6c6c709e8e6329bdfe7d121bfa100cf29
tree8f939dad1cc78f6389ec45ed623f2d6ea2c80aa6
parentf5d47abdf7cebc497d2ee475dfc2e00e8125e879
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lex.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/testsuite/g++.dg/template/ttp1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/typename1.C [new file with mode: 0644]