From 4f0a2b81cc16f866afa185e5f73b1918451fb1f7 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 12 Jan 2004 20:36:45 +0000 Subject: 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/class.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'gcc') 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 + + * 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 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); } -- cgit v1.1