This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/67311] ICE calling subroutine with derived type as argument within OpenMP parallel region


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]