2010-07-27 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc/alias-decl.git] / gcc / testsuite / gfortran.dg / typebound_generic_8.f03
blob0ee6610e1733ef6d1e0ae88526a1ddd2e6c01121
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 
29 ! { dg-final { cleanup-modules "ice6" } }