On Sat, 20 Jan 2024, Martin Uecker wrote: > C23: Fix ICE for composite type for structs with unsigned bitfields [PR113492] > > This patch fixes a bug when forming a composite type from structs that > contain an unsigned bitfield declared with int while using > -funsigned-bitfields. > In such structs the unsigned integer type was not compatible to the > regular unsigned integer type used elsewhere in the C FE. > > PR c/113492 > > gcc/c: > * c-decl.cc (grokdeclarator): Use c_common_unsigned_type instead of > unsigned_type_for to create the unsigned type for bitfields declared > with int when using -funsigned-bitfields. > > gcc/testsuite: > * gcc.dg/pr113492.c: New test.
OK. -- Joseph S. Myers josmy...@redhat.com