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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 24 18:59:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67311

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems with ALLOCATABLE rather than POINTER it is rejected though:
  TYPE myType
    TYPE(myType), DIMENSION(:), ALLOCATABLE :: x
  END TYPE myType
end
pr67311-2.f90:2:46:

     TYPE(myType), DIMENSION(:), ALLOCATABLE :: x
                                              1
Error: Derived type at (1) has not been previously defined and so cannot appear
in a derived type definition



More information about the Gcc-bugs mailing list