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

--- 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:21571cdd8355f2162910d40f2f72222d2dd4046f

commit r15-6747-g21571cdd8355f2162910d40f2f72222d2dd4046f
Author: Martin Uecker <uec...@tugraz.at>
Date:   Mon Jan 6 15:32:16 2025 +0100

    c: Restore warning for incomplete structures declared in parameter list
[PR117866]

    In C23 mode the warning about declaring structures and union in
    parameter lists was removed, because it is possible to redeclare
    a compatible type elsewhere.  This is not the case for incomplete types,
    so restore the warning for those types.

            PR c/117866

    gcc/c/ChangeLog:
            * c-decl.cc (get_parm_info): Change condition for warning.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr117866.c: New test.
            * gcc.dg/strub-pr118007.c: Adapt.
  • [Bug c/117866] [15 regression] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to