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

Reply via email to