module ice6

  type::a_type
   contains
     procedure::do_something
  end type a_type

  contains

  subroutine do_something(this)
    class(a_type),intent(in)::this
  end subroutine do_something

  subroutine do_something_else()
    class(a_type),dimension(:),allocatable::values
    call values(1)%do_something()
  end subroutine do_something_else

end module ice6

Compiling with GNU Fortran (GCC) 4.6.0 20100616 (experimental) results in:
f951: interner Compiler-Fehler: Speicherzugriffsfehler

This one is similar to bug 44211, but with a polymorphic array.


-- 
           Summary: [OOP] ICE with TBP of polymorphic derived type array
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boschmann at tp1 dot physik dot uni-siegen dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44568

Reply via email to