https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85627
Bug ID: 85627 Summary: [6/7/8/9 Regression] ICE in update_phi_components in tree-complex.c Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org Target Milestone: --- The testcase: __complex double foo (__complex double a, __complex double b) { __complex res = a; try { res = a * b; } catch (...) { res = b; } return res; } compiled with g++ -O2 -fnon-call-exceptions ICEs with: during GIMPLE pass: cplxlower complex.c: In function '__complex__ double foo(__complex__ double, __complex__ double)': complex.c:3:1: internal compiler error: Segmentation fault foo (__complex double a, __complex double b) ^~~ 0xe1b5b1 crash_signal %SRC/gcc/toplev.c:325 0xb31899 phi_nodes_ptr %SRC/gcc/gimple.h:4406 0xb31899 gsi_start_phis(basic_block_def*) %SRC/gcc/gimple-iterator.c:917 0xe81fb1 update_phi_components %SRC/gcc/tree-complex.c:747 0xe83bc8 tree_lower_complex %SRC/gcc/tree-complex.c:1695 0xe85b7a execute %SRC/gcc/tree-complex.c:1757 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.