https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98769
Bug ID: 98769
Summary: ICE for gfortran.dg/associate_26.f90 with
-fcoarray=lib
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
Target Milestone: ---
Compiling the test gfortran.dg/associate_26.f90 with -fcoarray=lib gives an ICE
13 | associate (i => a(1:p, 1:p))
| 1
internal compiler error: in generate_coarray_sym_init, at
fortran/trans-decl.c:5634
corresponding to
gcc_assert (GFC_ARRAY_TYPE_P (TREE_TYPE (decl)));
I see the ICE from GCC7 up to GC11, but not on the coarray-shared branch.