Commit 509087ae by Jason Merrill Committed by Jason Merrill

* class.c (finish_struct_bits): Also set TYPE_SIZE_UNIT.

From-SVN: r21796
parent 8cd4c175
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* gxxint.texi: Remove obsolete documentation of overloading code. * gxxint.texi: Remove obsolete documentation of overloading code.
* decl.c (finish_enum): Also set TYPE_SIZE_UNIT. * decl.c (finish_enum): Also set TYPE_SIZE_UNIT.
* class.c (finish_struct_bits): Likewise.
* tree.c (lvalue_type): Fix for arrays. * tree.c (lvalue_type): Fix for arrays.
* typeck.c (build_unary_op): Use lvalue_type. * typeck.c (build_unary_op): Use lvalue_type.
......
...@@ -1848,6 +1848,7 @@ finish_struct_bits (t, max_has_virtual) ...@@ -1848,6 +1848,7 @@ finish_struct_bits (t, max_has_virtual)
TYPE_MAX_VALUE (variants) = TYPE_MAX_VALUE (t); TYPE_MAX_VALUE (variants) = TYPE_MAX_VALUE (t);
TYPE_FIELDS (variants) = TYPE_FIELDS (t); TYPE_FIELDS (variants) = TYPE_FIELDS (t);
TYPE_SIZE (variants) = TYPE_SIZE (t); TYPE_SIZE (variants) = TYPE_SIZE (t);
TYPE_SIZE_UNIT (variants) = TYPE_SIZE_UNIT (t);
variants = TYPE_NEXT_VARIANT (variants); variants = TYPE_NEXT_VARIANT (variants);
} }
......
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