Commit 4f0a2b81 by Mark Mitchell Committed by Eric Botcazou

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
parent 66e0c440
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment