https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127105
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:5fa2866f2674d274034de150f669aee611c2d9fe commit r17-3737-g5fa2866f2674d274034de150f669aee611c2d9fe 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.
