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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <[email protected]>:

https://gcc.gnu.org/g:7c3e6df8ae01a473fba63e12efe2c82bd50ad502

commit r17-86-g7c3e6df8ae01a473fba63e12efe2c82bd50ad502
Author: Martin Uecker <[email protected]>
Date:   Sat Feb 28 17:12:43 2026 +0100

    c: Fix recursive structure / union redeclaration with qualifiers [PR124303]

    We reject correct recursive redeclarations when qualifiers are involved.
    The reason is that the check is done before the variants are completed.

            PR c/124303

    gcc/c/ChangeLog:
            * c-decl.cc (finish_struct): Check for consistency of
            declarations after completing variants.

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

Reply via email to