diff options
author | Mark Mitchell <mark@markmitchell.com> | 1999-03-10 09:33:45 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-03-10 09:33:45 +0000 |
commit | 5f23a307e27deb2693c2181812f3414ff73f490f (patch) | |
tree | 3ac4d5aeb83671635b2ab8fe3e37ad8f323fefc8 /gcc | |
parent | 2d7efc013da5143ba85b9bccf2880acda7180ec5 (diff) | |
download | gcc-5f23a307e27deb2693c2181812f3414ff73f490f.zip gcc-5f23a307e27deb2693c2181812f3414ff73f490f.tar.gz gcc-5f23a307e27deb2693c2181812f3414ff73f490f.tar.bz2 |
sig.c (build_signature_table_constructor): Use accessible_p instead of compute_access.
* sig.c (build_signature_table_constructor): Use accessible_p
instead of compute_access.
From-SVN: r25667
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/sig.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 93b5caf..30d3b5d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-03-10 Mark Mitchell <mark@markmitchell.com> + + * sig.c (build_signature_table_constructor): Use accessible_p + instead of compute_access. + 1999-03-09 Jason Merrill <jason@yorick.cygnus.com> * call.c (add_builtin_candidates): Handle overloaded conversion ops. diff --git a/gcc/cp/sig.c b/gcc/cp/sig.c index f264d31..f1ef69f 100644 --- a/gcc/cp/sig.c +++ b/gcc/cp/sig.c @@ -548,8 +548,7 @@ build_signature_table_constructor (sig_ty, rhs) break; if (rhs_methods == NULL_TREE - || (compute_access (basetypes, rhs_method) - != access_public_node)) + || !accessible_p (basetypes, rhs_method)) { error ("class `%s' does not contain a method conforming to `%s'", TYPE_NAME_STRING (rhstype), |