blob: 0999ad9264958f019aee222074a61598686b3428 [file] [log] [blame]
! { dg-do compile }
! { dg-options "-fcoarray=lib" }
! PR fortran/107681 - ICE in gfc_type_is_extensible
! Contributed by G.Steinmetz
program p
type t
integer, allocatable :: a
end type
class(t) :: x[*] ! { dg-error "must be dummy, allocatable or pointer" }
associate (y => x) ! { dg-error "Invalid array reference" }
end associate
end