https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125185
--- Comment #5 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:27b8544e08922d4625a4e2787bd00f36af13d12f commit r16-8886-g27b8544e08922d4625a4e2787bd00f36af13d12f Author: Richard Biener <[email protected]> Date: Tue May 5 10:10:07 2026 +0200 tree-optimization/125185 - fix ICE with associating DOT_PROD_EXPR When trying to discover a SLP reduction chain we eventually feed non-binary associatable stmts to vect_slp_linearize_chain which isn't prepared for that. Don't. PR tree-optimization/125185 * tree-vect-slp.cc (vect_analyze_slp_reduc_chain): Guard first vect_slp_linearize_chain call. * gcc.dg/torture/pr125185.c: New testcase. (cherry picked from commit 9d276bf057459de93ba304cdf780dbff3882491e)
