* friend.c (add_friend): Only perform access checks when context
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2004 10:41:19 +0000 (10:41 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Jun 2004 10:41:19 +0000 (10:41 +0000)
commitc344b0fed7ab145b046e6bb19343becf02e5199e
treecf4f78ec248da873e1e177db29f5cbdcd3a378fd
parent97c118b966257fcd0109a228c3e96128b433d301
* friend.c (add_friend): Only perform access checks when context
is a class.
* lex.c (cxx_make_type): Only create a binfo for aggregate types.
* parser.c (cp_parser_class_specifier): Disable access checks here
when parsing the body of a templated class.
* semantics.c (perform_or_defer_access_checks): Reorder to allow
NULL binfos when not checking access.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83771 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/lex.c
gcc/cp/parser.c
gcc/cp/semantics.c