diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-03-14 16:17:32 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-03-14 16:17:32 +0100 |
commit | c35cf160a0ed81570cff6600dba465cf95fa80fa (patch) | |
tree | 81d3ab44a48fc02958b1c4af22d7b1943cfcb8a1 /gcc/gcc.cc | |
parent | 0e6f87835ccabfe84afe412583544ff6e6292352 (diff) | |
download | gcc-c35cf160a0ed81570cff6600dba465cf95fa80fa.zip gcc-c35cf160a0ed81570cff6600dba465cf95fa80fa.tar.gz gcc-c35cf160a0ed81570cff6600dba465cf95fa80fa.tar.bz2 |
c++: Treat unnamed bitfields as padding for __has_unique_object_representations [PR109096]
As reported in the PR, for __has_unique_object_representations we
were treating unnamed bitfields as named ones, which is wrong, they
are actually padding.
THe following patch fixes that.
2023-03-14 Jakub Jelinek <jakub@redhat.com>
PR c++/109096
* tree.cc (record_has_unique_obj_representations): Ignore unnamed
bitfields.
* g++.dg/cpp1z/has-unique-obj-representations3.C: New test.
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions