https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103099
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- (gdb) l 1392 gimple *stmt = gsi_stmt (gsi); 1393 bool remove = false; 1394 if (gimple_clobber_p (stmt) || is_gimple_debug (stmt)) 1395 FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_USE) 1396 { 1397 basic_block bb = gimple_bb (SSA_NAME_DEF_STMT (op)); 1398 if (op != retval 1399 && bb 1400 && bb != return_bb 1401 && bitmap_bit_p (split_point->split_bbs, bb->index)) (gdb) p debug_gimple_stmt (stmt) # DEBUG D#1 => &D#2->D.2395 $1 = void there's no SSA use in this stmt. Sth forgets to update_stmt or somehow replaces a non-debug with a debug one in-place. Huh.