aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/sig.c3
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),