RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_28.f03
blob04d97f80641481966967123fb3044e64b78acab4
1 ! { dg-do compile }
3 ! PR 56266: [OOP] ICE on invalid in gfc_match_varspec
5 ! Contributed by Andrew Benson <abensonca@gmail.com>
7 module t
9   implicit none
11   type nc
12    contains
13      procedure :: encM => em
14   end type nc
16 contains
18   double precision function em(self)
19     class(nc) :: self
20     em=0.
21   end function
23   double precision function cem(c)
24     type(nc) :: c
25     cem=c(i)%encM()   ! { dg-error "Unclassifiable statement" }
26   end function
28 end module