diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7278ec4e6fb..3c4b38acb7d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-02-17 Michael Elizabeth Chastain + + * class.c (build_base_field): Mark fields for base classes with + DECL_IGNORED_P. + 2003-02-17 Kriang Lerdsuwanakij PR c++/9457 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 04130a06323..5e8b9fa1ec1 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -3958,7 +3958,8 @@ build_base_field (record_layout_info rli, tree binfo, DECL_SIZE_UNIT (decl) = CLASSTYPE_SIZE_UNIT (basetype); DECL_ALIGN (decl) = CLASSTYPE_ALIGN (basetype); DECL_USER_ALIGN (decl) = CLASSTYPE_USER_ALIGN (basetype); - + DECL_IGNORED_P (decl) = 1; + /* Try to place the field. It may take more than one try if we have a hard time placing the field without putting two objects of the same type at the same address. */