cp-tree.h (CPTR_AGGR_TAG): New global tree node.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 17 Aug 2000 12:26:39 +0000 (12:26 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 17 Aug 2000 12:26:39 +0000 (12:26 +0000)
commit4b054b8004c01fbdc368f1adfbc35681ec63f435
treedc83201e24e209489973c8e23767f94b2ee9b3ac
parent07745bdb36b003562aadda9564917e0413c7b403
cp-tree.h (CPTR_AGGR_TAG): New global tree node.

* 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.

From-SVN: r35755
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/parse.y
gcc/cp/pt.c