On Mon, 2 Jun 2025, Martin Uecker wrote: > I *believe* TYPE_PACKED should be propagated to existing main > variants. > > > Bootstrapped and regression tested for x86_64. > > Martin > > > c: fix ICE with enum completed with packed attribute after forward decl > [PR116892] > > After forward declaration of an enum and when completing it with the > attribute packed, we need to propagate TYPE_PACKED to all main variants. > > PR c/116892 > > gcc/c/ChangeLog: > * c-decl.cc (finish_enum): Propagate TYPE_PACKED. > > gcc/testsuite/ChangeLog: > * gcc.dg/pr116892.c: New test.
OK. -- Joseph S. Myers josmy...@redhat.com