https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:bd773888eafe34fb990041462df6d3a3c8a4217d

commit r16-1087-gbd773888eafe34fb990041462df6d3a3c8a4217d
Author: Martin Uecker <uec...@tugraz.at>
Date:   Sun Jun 1 22:30:42 2025 +0200

    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.

Reply via email to