blob: 2c5e96aa4fa4a7b95df3bd7d916f150904acd672 (
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 :: commoni,commonj
commoni = a%i
commonj = a%j ! { dg-error "is not a member of" }
end subroutine mysub
end module mymod
|