On Mon, 6 Jan 2025, Martin Uecker wrote:

> 
> Happy new year! Please consider the following patch.
> 
> Bootstrapped and regression tested on x86_64.
> 
> 
>     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/117886
>     
>     gcc/c/ChangeLog:
>             * c-decl.cc (get_parm_info): Change condition for warning.
>     
>     gcc/testsuite/ChangeLog:
>             * gcc.dg/pr117866.c: New test.
>             * gcc.dg/struct-pr118007.c: Adapt.

OK.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to