https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102900
Bug ID: 102900 Summary: ICE via gfc_class_data_get in alloc_comp_class_4.f03 with -fcheck=all Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Compiling the existing alloc_comp_class_4.f03 with -fcheck=all fails with: alloc_comp_class_4.f03:91:29: 91 | call add_class_c(c_init2()) | 1 internal compiler error: Segmentation fault 0xfaae63 crash_signal ../../repos/gcc/gcc/toplev.c:322 0xa050a1 gfc_class_data_get(tree_node*) ../../repos/gcc/gcc/fortran/trans-expr.c:230 0xa0f97f gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec<tree_node*, va_gc, vl_embed>*) ../../repos/gcc/gcc/fortran/trans-expr.c:7211