https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109096
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:66d35a0cb88f83f085b2ba4c46d0429ba0cfe574 commit r11-10724-g66d35a0cb88f83f085b2ba4c46d0429ba0cfe574 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Mar 14 16:17:32 2023 +0100 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 <ja...@redhat.com> PR c++/109096 * tree.c (record_has_unique_obj_representations): Ignore unnamed bitfields. * g++.dg/cpp1z/has-unique-obj-representations3.C: New test. (cherry picked from commit c35cf160a0ed81570cff6600dba465cf95fa80fa)