class.c (build_base_field): Mark fields for base classes with DECL_IGNORED_P.
authorMichael Elizabeth Chastain <mec@shout.net>
Tue, 18 Feb 2003 07:24:44 +0000 (07:24 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 18 Feb 2003 07:24:44 +0000 (07:24 +0000)
* class.c (build_base_field): Mark fields for base classes with
DECL_IGNORED_P.

From-SVN: r63026

gcc/cp/ChangeLog
gcc/cp/class.c

index 7278ec4e6fbb4d1ba1b8e451d620a68e65db69f7..3c4b38acb7dadbdb2fe2ca178f1bb25db05b65f3 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-17  Michael Elizabeth Chastain <mec@shout.net>
+
+       * class.c (build_base_field): Mark fields for base classes with
+       DECL_IGNORED_P.
+
 2003-02-17  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/9457
index 04130a06323ee24760de7014ec0b87ba1a5d99da..5e8b9fa1ec1fc08c868b6b73aad17446483da859 100644 (file)
@@ -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.  */