blob: 54276b45d33ed122b038e467dad14217468d78c8 [file] [log] [blame]
! { dg-do compile }
! Code contributed by Gerhard Steinmetz.
program p
type t
class(*), allocatable :: a
end type
type(t) :: x
allocate (x%a, source=[1]) ! { dg-error "have the same rank as" }
end