------- Comment #6 from janus at gcc dot gnu dot org 2010-03-02 23:31 ------- Here is another very similar example:
implicit none type :: lorenz end type lorenz type(lorenz) :: attractor print *,output(attractor) contains function output(this) result(coordinates) class(lorenz), intent(in) :: this real, dimension(:), allocatable :: coordinates end function output end main.f90: In function MAIN__: main.f90:13:0: internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:548 This has been extracted from the code found in http://dx.doi.org/10.1145/1644001.1644004. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42051