From: Mark Mitchell Date: Mon, 12 Jan 2004 20:36:45 +0000 (+0000) Subject: class.c (layout_class_type): For non-POD class types... X-Git-Tag: releases/gcc-3.4.0~1062 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f0a2b81cc16f866afa185e5f73b1918451fb1f7;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 109dc83fb2fe..60e7192af112 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 49d21b746200..b6649ab3b483 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); }