]> gcc.gnu.org Git - gcc.git/commitdiff
* 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 58ee77c90423201ff9075149804dac8f4e26ddf3..907b82ca77aa0d4bca71dc2c75711d0c09f4fc9f 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 b62e8343bcb7da181573dcb8f4b7ba8584af305b..afe430e0e61fa5e5d439994baa6a4fe59c6ff51d 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);
     }
 
This page took 0.093167 seconds and 5 git commands to generate.