https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125019
--- Comment #5 from GCC Commits ---
The releases/gcc-14 branch has been updated by Richard Biener
:
https://gcc.gnu.org/g:a6d9016c98fc288da9d3aa9c365ac6bb452fedad
commit r14-12663-ga6d9016c98fc288da9d3aa9c365ac6bb452fedad
Author: Richard Biener
Date: Sun Apr 26 11:16:33 2026 +0200
tree-optimization/125019 - fix ICE with recurrence vectorization
This fixes an oversight with the PR124677 fix.
PR tree-optimization/125019
* tree-vect-loop.cc (vectorizable_recurr): Properly guard
against hitting last stmt when searching for the insertion
place.
* gcc.dg/pr125019.c: New testcase.
(cherry picked from commit 0ecc55faf01e4ebd674d8e1a41712c9762c521aa)