1! { dg-do compile }
2!
3! PR 43896: [fortran-dev Regression] ICE in gfc_conv_variable, at fortran/trans-expr.c:551
4!
5! Contributed by Fran Martinez Fadrique <fmartinez@gmv.com>
6
7module m_rotation_matrix
8
9  type t_rotation_matrix
10    contains
11      procedure :: array => rotation_matrix_array
12  end type
13
14contains
15
16  function rotation_matrix_array( rot ) result(array)
17    class(t_rotation_matrix) :: rot
18    double precision, dimension(3,3)    :: array
19  end function
20
21end module
22