summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/allocate_derived_4.f90
blob: 06d127004273bbd58b4977ce59f6436d684f5ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-do compile }
!
! PR 45577: [4.6 Regression] Bogus(?) "... type incompatible with source-expr ..." error
!
! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>

program main

type b_obj
  integer,allocatable :: c(:)
  real :: r = 5.
end type b_obj

type (b_obj),allocatable :: b(:)
integer,allocatable :: c(:)

allocate(b(3),c(3))

end program main