! { dg-do compile }! PR fortran/90986module mymod
type:: mytyp
integer:: i
end type mytyp
containssubroutine mysub
implicit nonetype(mytyp) :: a
integer:: equivalencei,equivalencej
equivalencei = a%i
equivalencej = a%j ! { dg-error "is not a member of the" }end subroutine mysub
end module mymod