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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Richard Biener
<[email protected]>:

https://gcc.gnu.org/g:84a217416290fb8551509f207fd3acc2adf57259

commit r15-10765-g84a217416290fb8551509f207fd3acc2adf57259
Author: Richard Biener <[email protected]>
Date:   Fri Jan 30 19:30:40 2026 +0100

    middle-end/123887 - fix another missing side-effect check

    The following fixes up another pattern lacking a check for
    side-effects on operands made evaluated unconditional.

            PR middle-end/123887
            * match.pd ((a ? x : y) !=/== (b ? x : y)): Make sure
            x and y have no side-effects before evaluating them
            unconditionally.

            * gcc.dg/torture/pr123887-2.c: New testcase.

    (cherry picked from commit cd6c3d19f6370810a20a2b84dad639200affa4fa)

Reply via email to