! { dg-do compile } ! ! Test the fix for PR82587 ! ! Contributed by G Steinmetz ! program p type t(a) ! { dg-error "does not have a component" } integer(kind=t()) :: x ! { dg-error "used before it is defined" } end type end