OSDN Git Service

* cp-tree.h (CPTR_AGGR_TAG): New global tree node.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Aug 2000 12:26:39 +0000 (12:26 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Aug 2000 12:26:39 +0000 (12:26 +0000)
commiteccec8533b50a1076b3eb8bb85615a90b121cab3
treedc83201e24e209489973c8e23767f94b2ee9b3ac
parentd8b0b2aeb678bdb1192c73447c7131179ac8806a
* cp-tree.h (CPTR_AGGR_TAG): New global tree node.
(current_aggr): Define.
* decl.c (grokdeclarator): Make sure a friend class is an
elaborated type specifier.
* parse.y (current_aggr): Remove static definition.
(cp_parse_init): Adjust.
(structsp): Clear and restore current_aggr.
(component_decl_list): Clear current_aggr.

* error.c (dump_type, case TYPENAME_TYPE): Don't emit the
aggregate tag on the typename's context.

* pt.c (tsubst_friend_class): Return NULL, if parms becomes NULL.
(instantiate_class_template): Ignore NULL friend types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35755 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/parse.y
gcc/cp/pt.c