https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123383
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Kugan Vivekanandarajah <[email protected]>: https://gcc.gnu.org/g:76af3bd3815eb0919a7d0eeed77ad11ca734173a commit r16-6589-g76af3bd3815eb0919a7d0eeed77ad11ca734173a Author: Kugan Vivekanandarajah <[email protected]> Date: Fri Jan 9 11:58:33 2026 +1100 [PR ipa/123383][v2] ICE speculative call sequence has speculative_id 256 out of range Fix by checking lto_stmt_uid in get_next_speculative_id. gcc/ChangeLog: 2026-01-07 Kugan Vivekanandarajah <[email protected]> PR ipa/123383 * cgraph.cc (cgraph_edge::get_next_speculative_id): Check lto_stmt_uid in get_next_speculative_id. gcc/testsuite/ChangeLog: 2026-01-07 Kugan Vivekanandarajah <[email protected]> PR ipa/123383 * g++.dg/pr123383.C: New test. co-authored-by: Andrew Pinski <[email protected]> Signed-off-by: Kugan Vivekanandarajah <[email protected]>
