https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92872
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Martin Liška from comment #1) > Confirmed, started with r276444. Untested patch: --- a/gcc/fortran/trans-array.c +++ b/gcc/fortran/trans-array.c @@ -884,3 +884,3 @@ get_CFI_desc (gfc_symbol *sym, gfc_expr *expr, - if (tmp && DECL_LANG_SPECIFIC (tmp)) + if (tmp && DECL_LANG_SPECIFIC (tmp) && GFC_DECL_SAVED_DESCRIPTOR (tmp)) tmp = GFC_DECL_SAVED_DESCRIPTOR (tmp);