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

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

https://gcc.gnu.org/g:a3f0101ea908248e1d46e9714a482ae696230812

commit r16-9670-ga3f0101ea908248e1d46e9714a482ae696230812
Author: Richard Biener <[email protected]>
Date:   Wed Sep 9 09:13:25 2026 +0200

    tree-optimization/127262 - ICE with uninit warning and switches

    We are not expecting the switch index and the case labels to differ
    in types.  The following fixes this by converting the case label
    values accordingly.

            PR tree-optimization/127262
            * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
            Convert switch label values to the type of the switch index.

            * gcc.dg/pr127262.c: New testcase.

    (cherry picked from commit 388aada52115970d85926c07072aeb7fce4498e7)

Reply via email to