* class.c (end_of_class): Correct thinko.
authorMark Mitchell <mark@codesourcery.com>
Wed, 5 Mar 2003 08:27:42 +0000 (08:27 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 5 Mar 2003 08:27:42 +0000 (08:27 +0000)
From-SVN: r63829

gcc/cp/ChangeLog
gcc/cp/class.c

index a449b428d432e772cafc0d96db19067b3a546973..a57faa906c4d194a167f536cac2092a8c26d029a 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-05  Mark Mitchell  <mark@codesourcery.com>
+
+       * class.c (end_of_class): Correct thinko.
+
 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * config-lang.in: Replace ${libstdcxx_version} by its value.
index a12fd73ae174e21c2d997726c731af18ad9fea08..433e4266cba995c574d974ae03e10f164e079709 100644 (file)
@@ -4647,7 +4647,7 @@ end_of_class (tree t, int include_virtuals_p)
 
       if (!include_virtuals_p
          && TREE_VIA_VIRTUAL (binfo) 
-         && !BINFO_PRIMARY_P (binfo))
+         && BINFO_PRIMARY_BASE_OF (binfo) != TYPE_BINFO (t))
        continue;
 
       offset = end_of_base (binfo);