https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67311
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |openmp CC| |burnus at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ugh, Fortran really allows this mess (effectively self-referential types)? The infinite recursion in gfc_has_alloc_comps supposedly can be dealt with by adding say a pointer set of seen types and returning 0 for them rather than recursing on them, or something similar. But if the type has allocatable components, is there anything that would prevent the need for endless recursion when actually generating code to expand it? Or is here only POINTER allowed and not ALLOCATABLE? TYPE myType TYPE(myType), DIMENSION(:), ALLOCATABLE :: x END TYPE myType