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

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

commit r16-7383-gf3f7e7514a794f34a0db1cda63cbaa0f1eb899f5
Author: David Malcolm <[email protected]>
Date:   Sat Feb 7 10:21:00 2026 -0500

    analyzer: fix ICE on operator new with discarded result [PR116228]

    gcc/analyzer/ChangeLog:
            PR analyzer/116228
            * kf-lang-cp.cc (kf_operator_new::impl_call_post): Don't try to
            add a constraint if the return value is discarded.

    gcc/testsuite/ChangeLog:
            PR analyzer/116228
            * g++.dg/analyzer/ice-pr116228.C: New test.

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

Reply via email to