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

--- Comment #4 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:b46e4afaff5b2cfd23b6d4d364d12f3f7ec07f78

commit r16-6473-gb46e4afaff5b2cfd23b6d4d364d12f3f7ec07f78
Author: Martin Uecker <[email protected]>
Date:   Sun Dec 21 19:10:56 2025 +0100

    c: Fix ICE for invalid code with variadic and old-school prototypes
[PR121507]

    When mixing old-school definition without prototype and new C23
    variadic functions without named argument, there can be an ICE
    when trying to form the composite type.  Avoid this by letting it
    fail later due to incompatible types.

            PR c/121507

    gcc/c/ChangeLog:
            * c-decl.cc (start_function): Adapt condition.

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

Reply via email to