* class.c (finish_struct_bits): Also set TYPE_SIZE_UNIT.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 17 Aug 1998 17:23:38 +0000 (17:23 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 17 Aug 1998 17:23:38 +0000 (13:23 -0400)
From-SVN: r21796

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

index 58ee77c..907b82c 100644 (file)
@@ -3,6 +3,7 @@
        * gxxint.texi: Remove obsolete documentation of overloading code.
 
        * decl.c (finish_enum): Also set TYPE_SIZE_UNIT.
+       * class.c (finish_struct_bits): Likewise.
 
        * tree.c (lvalue_type): Fix for arrays.
        * typeck.c (build_unary_op): Use lvalue_type.
index b62e834..afe430e 100644 (file)
@@ -1848,6 +1848,7 @@ finish_struct_bits (t, max_has_virtual)
       TYPE_MAX_VALUE (variants) = TYPE_MAX_VALUE (t);
       TYPE_FIELDS (variants) = TYPE_FIELDS (t);
       TYPE_SIZE (variants) = TYPE_SIZE (t);
+      TYPE_SIZE_UNIT (variants) = TYPE_SIZE_UNIT (t);
       variants = TYPE_NEXT_VARIANT (variants);
     }