diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-06-24 15:40:06 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-06-24 15:40:06 +0000 |
commit | 6df5158a36cb2b8c5f6642f0208648c1ea2d5786 (patch) | |
tree | d50a764e01dcd1dc880e14a21c3e985f121b8667 /gcc/cp/method.c | |
parent | 401f376dfd4f9c976cb452cc71bc4199cf9c8087 (diff) | |
download | gcc-6df5158a36cb2b8c5f6642f0208648c1ea2d5786.zip gcc-6df5158a36cb2b8c5f6642f0208648c1ea2d5786.tar.gz gcc-6df5158a36cb2b8c5f6642f0208648c1ea2d5786.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index d02d024..cb2c864 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -182,7 +182,7 @@ hack_identifier (tree value, tree name) { tree path; path = currently_open_derived_class (DECL_CONTEXT (value)); - perform_or_defer_access_check (path, value); + perform_or_defer_access_check (TYPE_BINFO (path), value); } } else if (TREE_CODE (value) == TREE_LIST |