[Bug fortran/92872] [10 Regression] ICE in build_fold_indirect_ref_loc, at fold-const.c:14842
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 10:06:00 GMT 2019
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);
More information about the Gcc-bugs
mailing list