PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_17.f03
blob4bc177b17a000fd34083d2692243bec07cc430c5
1 ! { dg-do compile }
3 ! PR 44962: [OOP] ICE with specification expression SIZE(<CLASS>)
5 ! Contributed by Satish.BD <bdsatish@gmail.com>
8 module array
10 type :: t_array
11   real, dimension(10) :: coeff
12 contains
13   procedure :: get_coeff
14 end type t_array
16 contains
18 function get_coeff(self) result(coeff)
19   class(t_array), intent(in) :: self
20   real, dimension(size(self%coeff)) :: coeff !! The SIZE here carashes !!
21 end function get_coeff
23 end module array