diff options
author | Jason Merrill <jason@redhat.com> | 2019-01-29 10:39:40 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-01-29 10:39:40 -0500 |
commit | 7e574f68fa82e7c5f879fd468291ec8b5ebecc83 (patch) | |
tree | 1f21833e2d6af54eca9bc56c95e022c7ebb25c54 /gcc/omp-simd-clone.c | |
parent | 6065f1c5889159c9fa1b6c74726d04fc9abea9fe (diff) | |
download | gcc-7e574f68fa82e7c5f879fd468291ec8b5ebecc83.zip gcc-7e574f68fa82e7c5f879fd468291ec8b5ebecc83.tar.gz gcc-7e574f68fa82e7c5f879fd468291ec8b5ebecc83.tar.bz2 |
PR c++/89089 - ICE with [[no_unique_address]].
In 89089, we were never actually setting DECL_SIZE on an empty data member,
because its type is a POD, so we didn't set it in the maybe-overlapping
section. Fixed by also handling empty types there.
In 88865, we were failing to consider empty data members in
include_empty_classes. Fixed by making end_of_class always include them.
While looking at these I noticed that the ABI says that a
potentially-overlapping data member makes its class non-layout-POD, and that
an empty data member doesn't prevent its class from being empty, so I've
implemented those points as well.
PR c++/88865 - wrong layout with [[no_unique_address]].
* class.c (check_field_decls): A potentially-overlapping field makes
the class non-layout-POD, but not non-empty.
(end_of_class): Always consider empty data members.
(layout_class_type): Set DECL_SIZE for empty fields.
From-SVN: r268368
Diffstat (limited to 'gcc/omp-simd-clone.c')
0 files changed, 0 insertions, 0 deletions