PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_generic_8.f03
blob2c507e14c3373f87584a4875b5834165194249d6
1 ! { dg-do compile }
3 ! PR 44565: [4.6 Regression] [OOP] ICE in gimplify_expr with array-valued generic TBP
5 ! Contributed by Hans-Werner Boschmann <boschmann@tp1.physik.uni-siegen.de>
7 module ice6
9   type :: t
10    contains
11      procedure :: get_array
12      generic :: get_something => get_array
13   end type
15 contains
17   function get_array(this)
18     class(t) :: this
19     real,dimension(2) :: get_array
20   end function get_array
22   subroutine do_something(this)
23     class(t) :: this
24     print *,this%get_something()
25   end subroutine do_something
27 end module ice6