sig.c (build_signature_table_constructor): Use accessible_p instead of compute_access.
authorMark Mitchell <mark@markmitchell.com>
Wed, 10 Mar 1999 09:33:45 +0000 (09:33 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 10 Mar 1999 09:33:45 +0000 (09:33 +0000)
* sig.c (build_signature_table_constructor): Use accessible_p
instead of compute_access.

From-SVN: r25667

gcc/cp/ChangeLog
gcc/cp/sig.c

index 93b5caf1a6688de4f26a7fc99a1abd141f39b16a..30d3b5d257a09d406f94050ddc221af72996cbbc 100644 (file)
@@ -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.
index f264d310fe911c21f1b81544766d0bef5d9242eb..f1ef69fc8f9f472f9b17da764046194e3bd6cd06 100644 (file)
@@ -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),