aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr90988_1.f90
blob: f8b6f1331631667a6c31ed7f6b44dfdeeb026356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { 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