friend.c (add_friend): Only perform access checks when context is a class.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 28 Jun 2004 10:41:19 +0000 (10:41 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 28 Jun 2004 10:41:19 +0000 (10:41 +0000)
commit0f2a66c9c7ea9602a19ce1fa4a067c1c43e65363
treecf4f78ec248da873e1e177db29f5cbdcd3a378fd
parent58c42dc28354d5857a5d905d505127eb5624111f
friend.c (add_friend): Only perform access checks when context is a class.

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

From-SVN: r83771
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/lex.c
gcc/cp/parser.c
gcc/cp/semantics.c