https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53298
--- Comment #13 from markeggleston at gcc dot gnu.org --- The test case in comment 0 is fixed by: trans-array.c @ -3638,8 +3638,11 @@ gfc_conv_array_ref (gfc_se * se, gfc_array_ref * ar, gfc_expr *expr, /* Handle scalarized references separately. */ if (ar->type != AR_ELEMENT) { - gfc_conv_scalarized_array_ref (se, ar); - gfc_advance_se_ss_chain (se); + if (se->ss) + { + gfc_conv_scalarized_array_ref (se, ar); + gfc_advance_se_ss_chain (se); + } return; } make -j 8 check-fortran does not produce any additional test case failures on x86_64. The test case in comment 7 still produces the same ICE.