PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_60.f90
blobf51c48349c331e5cb49d9da78f2e9f24ddfdb7da
1 ! { dg-do compile }
3 ! PR 66366: [OOP] ICE on invalid with non-allocatable CLASS variable
5 ! Contributed by Andrew Benson <abensonca@gmail.com>
7 module bug
9 type :: t1d
10 contains
11 procedure :: interpolate => interp
12 end type t1d
14 type :: tff
15 class(t1d) :: transfer ! { dg-error "must be allocatable or pointer" }
16 end type tff
18 contains
20 double precision function interp(self)
21 implicit none
22 class(t1d), intent(inout) :: self
23 return
24 end function interp
26 double precision function fvb(self)
27 implicit none
28 class(tff), intent(inout) :: self
29 fvb=self%transfer%interpolate() ! { dg-error "is not a member of" }
30 return
31 end function fvb
33 end module bug