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

--- Comment #7 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:7825c07bbaf503c47ecedd87e3d64be003b24f2c

commit r15-1929-g7825c07bbaf503c47ecedd87e3d64be003b24f2c
Author: Martin Uecker <uec...@tugraz.at>
Date:   Sat Jun 29 15:53:43 2024 +0200

    c: Fix ICE for redeclaration of structs with different alignment [PR114727]

    For redeclarations of struct in C23, if one has an alignment attribute
    that makes the alignment different, we later get an ICE in verify_types.
    This patches disallows such redeclarations by declaring such types to
    be different.

            PR c/114727

    gcc/c/
            * c-typeck.cc (tagged_types_tu_compatible): Add test.

    gcc/testsuite/
            * gcc.dg/pr114727.c: New test.

Reply via email to