call.c (enforce_access): Assert we get a binfo.
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 24 Jun 2003 15:40:06 +0000 (15:40 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 24 Jun 2003 15:40:06 +0000 (15:40 +0000)
commit6df5158a36cb2b8c5f6642f0208648c1ea2d5786
treed50a764e01dcd1dc880e14a21c3e985f121b8667
parent401f376dfd4f9c976cb452cc71bc4199cf9c8087
call.c (enforce_access): Assert we get a binfo.

* call.c (enforce_access): Assert we get a binfo.
(build_op_delete_call): Pass a binfo to
perform_or_defer_access_check.
* class.c (alter_access): Likewise.
* decl.c (make_typename_type): Likewise.
(make_unbound_class_template): Likewise.
* lex.c (do_identifier): Likewise.
* method.c (hack_identifier): Likewise.
* parser.c (cp_parser_lookup_name): Likewise.
* search.c (lookup_member): Likewise. Move IDENTIFIER_CLASS_VALUE
test.
* semantics.c (finish_non_static_data_member): Likewise.
(perform_or_defer_access_check): Expect a binfo.
* typeck.c (comptypes): Expect types.

* mangle.c (find_substitution): Don't pass a non-type to same_type_p
* friend.c (make_friend_class): Likewise.
* pt.c (check_default_tmpl_args): Likewise.
(lookup_template_class): Likewise.

From-SVN: r68424
13 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/friend.c
gcc/cp/lex.c
gcc/cp/mangle.c
gcc/cp/method.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/semantics.c
gcc/cp/typeck.c