https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127105
--- Comment #4 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:7866d2f8e06ed73dbca75f01d409a2c32028bb09 commit r16-9612-g7866d2f8e06ed73dbca75f01d409a2c32028bb09 Author: Richard Biener <[email protected]> Date: Fri Aug 28 14:54:01 2026 +0200 tree-optimization/127105 - ICE with empty reduction When we try to analyze a reduction chain we ICE when we access the single stmt we want to use after verifying that single stmt exists, but we do the access before. Oops. PR tree-optimization/127105 * tree-vect-slp.cc (vect_analyze_slp_reduc_chain): Access scalar_stmts[0] only after we determined it exists. * gcc.dg/vect/vect-pr127105.c: New testcase. (cherry picked from commit 5fa2866f2674d274034de150f669aee611c2d9fe)
