https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85627
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Part of the fix: Index: gcc/tree-complex.c =================================================================== --- gcc/tree-complex.c (revision 259879) +++ gcc/tree-complex.c (working copy) @@ -1692,6 +1692,8 @@ tree_lower_complex (void) for (i = 0; i < n_bbs; i++) { bb = BASIC_BLOCK_FOR_FN (cfun, rpo[i]); + if (!bb) + continue; update_phi_components (bb); for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) expand_complex_operations_1 (&gsi);