! { dg-do compile }! Check that equivalence with allocatable components isn't allowed (PR 20541)program maintype::foosequenceinteger,allocatable::x(:)end type footype(foo)::ainteger::bequivalence(a,b)! { dg-error "cannot have ALLOCATABLE components" }end program main