aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-01-12 20:36:45 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-01-12 20:36:45 +0000
commit4f0a2b81cc16f866afa185e5f73b1918451fb1f7 (patch)
treef1c292b6f9daea6fb94aa167e53a91b61c054fc0 /gcc/cp
parent66e0c440475e00e4e3285ec7a60ba616a20146cc (diff)
downloadgcc-4f0a2b81cc16f866afa185e5f73b1918451fb1f7.zip
gcc-4f0a2b81cc16f866afa185e5f73b1918451fb1f7.tar.gz
gcc-4f0a2b81cc16f866afa185e5f73b1918451fb1f7.tar.bz2
class.c (layout_class_type): For non-POD class types...
* 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. From-SVN: r75758
Diffstat (limited to 'gcc/cp')
-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 109dc83..60e7192 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 49d21b7..b6649ab 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);
}