aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-01-12 20:36:45 +0000
committerEric Botcazou <ebotcazou@libertysurf.fr>2004-01-12 20:36:45 +0000
commit9567b0bf737c7a8417da1d9b993eb9a44e536e6e (patch)
treef1c292b6f9daea6fb94aa167e53a91b61c054fc0
parenta2abf630ebabc4ba89737d239f6bdb55261ff56d (diff)
* class.c (layout_class_type): For non-POD class types, also copy
the DECL_SIZE and DECL_MODE of fields to the base class type. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@75758 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 109dc83fb2f..60e7192af11 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-12 Mark Mitchell <mark@codesourcery.com>
+
+ * class.c (layout_class_type): For non-POD class types, also copy
+ the DECL_SIZE and DECL_MODE of fields to the base class type.
+
2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13289
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 49d21b74620..b6649ab3b48 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -4941,6 +4941,8 @@ layout_class_type (tree t, tree *virtuals_p)
DECL_FIELD_OFFSET (*next_field) = DECL_FIELD_OFFSET (field);
DECL_FIELD_BIT_OFFSET (*next_field)
= DECL_FIELD_BIT_OFFSET (field);
+ DECL_SIZE (*next_field) = DECL_SIZE (field);
+ DECL_MODE (*next_field) = DECL_MODE (field);
next_field = &TREE_CHAIN (*next_field);
}