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

--- 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:69b39dfb780e83333d5dd898749089e63e063341

commit r16-6471-g69b39dfb780e83333d5dd898749089e63e063341
Author: Martin Uecker <[email protected]>
Date:   Sun Dec 21 20:16:19 2025 +0100

    c: Emit -Wzero-as-null-pointer-constant for all integral types [PR117687]

    Also warn for boolean, _BitInts, and enumeration constants when
    warning for zero as a null pointer constant.

            PR c/117687

    gcc/c/ChangeLog:
            * c-typeck.cc (parser_build_binary_op,build_conditional_expr,
            convert_for_assignment): Adapt conditions.

    gcc/testsuite/ChangeLog:
            * gcc.dg/Wzero-as-null-pointer-constant-2.c: New test.

Reply via email to