]> gcc.gnu.org Git - gcc.git/commitdiff
class.c (layout_class_type): For non-POD class types...
authorMark Mitchell <mark@codesourcery.com>
Mon, 12 Jan 2004 20:36:45 +0000 (20:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 12 Jan 2004 20:36:45 +0000 (20:36 +0000)
* 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
gcc/cp/class.c

index 109dc83fb2fe8cc603fd10b728cacac98d8d5171..60e7192af112d91dd28ca89f810d7b6c0b4f28ea 100644 (file)
@@ -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
index 49d21b746200c3b94827d573637c09abf3afad01..b6649ab3b483d754c97c0b2a071dc6f0c8922a0f 100644 (file)
@@ -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);
          }
 
This page took 0.067093 seconds and 5 git commands to generate.