aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/coarray/alloc_comp_2.f90
blob: 13c823e7474955313719d069970ff13acea09091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
!
! PR fortran/56929
!
! Contributed by Damian Rouson
!
! Allocatable scalar corrays were mishandled (ICE)
!
module parent_coarray_component
  type parent
    real, allocatable :: dummy[:]
  end type
  type, extends(parent) :: child
  end type
contains
  subroutine do_something(this)
    class(child) this
  end 
end