aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-03-05 08:27:42 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-03-05 08:27:42 +0000
commit8234c6c11a17ea58b80719e228bf6904351f34f6 (patch)
treea4fb73d73167a62705c8b5d09a9f888794473e63
parent4e263cd91b6588a43e80ffbf29b7dc664852ed4a (diff)
downloadgcc-8234c6c11a17ea58b80719e228bf6904351f34f6.zip
gcc-8234c6c11a17ea58b80719e228bf6904351f34f6.tar.gz
gcc-8234c6c11a17ea58b80719e228bf6904351f34f6.tar.bz2
* class.c (end_of_class): Correct thinko.
From-SVN: r63829
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/class.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a449b428..a57faa9 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index a12fd73..433e426 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -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);