cp-tree.h (add_friend): Declare.
authorMark Mitchell <mark@codesourcery.com>
Sat, 27 Mar 1999 17:33:36 +0000 (17:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 27 Mar 1999 17:33:36 +0000 (17:33 +0000)
commit0c0aac2fecce30d1c71554169446cae25f079234
tree60ca8cc353fd96a0c775f1b61e4833ed942c36b0
parentf099f336d1933243103b460498b49c7b7314d2be
cp-tree.h (add_friend): Declare.

* cp-tree.h (add_friend): Declare.
(add_friends): Likewise.
* friend.c (add_friend): Make it global.  Don't add to
DECL_BEFRIENDING_CLASSES if the befriending class is a template.
(add_friends): Make it global.
(make_friend_class): Don't add to DECL_BEFRIENDING_CLASSES if the
befriending class is a template.
* parse.y (component_decl_1): Fix typo in comment.
* parse.c: Regenerated.
* pt.c (instantiate_class_template): Use add_friend and
add_friends rather that duplicating some of their functionality
here.

From-SVN: r26020
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/friend.c
gcc/cp/parse.y
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/crash32.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/friend38.C