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

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

https://gcc.gnu.org/g:54ee3bfa3bcea520728ada5654089f02fc508a1f

commit r16-8018-g54ee3bfa3bcea520728ada5654089f02fc508a1f
Author: David Malcolm <[email protected]>
Date:   Wed Mar 11 20:45:29 2026 -0400

    analyzer: fix ICE on effective modulo by zero [PR124433]

    gcc/analyzer/ChangeLog:
            PR analyzer/124433
            * region-model-manager.cc
            (region_model_manager::maybe_fold_binop): When checking for
            division by zero, use the value range of the divisor, rather
            than merely checking for constant 0.
            * region-model.cc (region_model::get_gassign_result): Likewise.

    gcc/testsuite/ChangeLog:
            PR analyzer/124433
            * gcc.dg/analyzer/divide-by-zero-ice-pr124433.c: New test.

    Signed-off-by: David Malcolm <[email protected]>

Reply via email to