Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / typebound_proc_17.f03
blob5c1a1c30c573d8bdb495caf815f9da3d114599fd
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
26 ! { dg-final { cleanup-modules "array" } }