view gcc/testsuite/gfortran.dg/pr90988_1.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do compile }
module mymod
  type :: mytyp
    integer :: i
  end type mytyp
contains
  subroutine mysub
    implicit none
    type(mytyp) :: a
    integer :: publici,publicj
    publici = a%i
    publicj = a%j       ! { dg-error "is not a member" }
  end subroutine mysub
end module mymod