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

--- Comment #5 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:d8af6c203f18b4fd736df9567926589d96f8e0b3

commit r15-5334-gd8af6c203f18b4fd736df9567926589d96f8e0b3
Author: Martin Uecker <uec...@tugraz.at>
Date:   Thu Nov 14 20:54:33 2024 +0100

    c: fix ICE when forming composite type for two structures / unions
[PR117548]

    When forming the composite type from two tagged type, we need to find the
    original type for a typedecl to get the correct tag.

            PR c/117548

    gcc/c/ChangeLog:
            * c-decl.cc (finish_struct): Add checking assertion.
            * c-typeck.cc (c_type_original): New function.
            (composite_types_internal): Get tag from original type.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr117548.c: New test.

Reply via email to