PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_31.f90
blob82a67c08417fd505d165fbc2338c7318aaf1bb5d
1 ! { dg-do compile }
3 ! PR 59450: [OOP] ICE for type-bound-procedure expression in module procedure interface
5 ! Contributed by <bugs@miller-mohr.de>
7 module classes
9 implicit none
11 type :: base_class
12 contains
13 procedure, nopass :: get_num
14 end type
16 contains
18 pure integer function get_num()
19 end function
21 function get_array( this ) result(array)
22 class(base_class), intent(in) :: this
23 integer, dimension( this%get_num() ) :: array
24 end function
26 end module