blob: 74199c343faa89ea4721b5a167f41898b04c1405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
! { dg-do compile }
!
! PR 56266: [OOP] ICE on invalid in gfc_match_varspec
!
! Contributed by Andrew Benson <abensonca@gmail.com>
module t
implicit none
type nc
contains
procedure :: encM => em
end type nc
contains
double precision function em(self)
class(nc) :: self
em=0.
end function
double precision function cem(c)
type(nc) :: c
cem=c(i)%encM() ! { dg-error "Unclassifiable statement" }
end function
end module
! { dg-final { cleanup-modules "t" } }
|