type t0
  integer :: j = 42
end type t0
type t
  integer :: i
  class(t0), allocatable :: foo(3)
end type t

Is invalid. the "foo(3)" shall be "foo(:)" as "foo" is allocatable.


-- 
           Summary: [OOP] ICE with ALLOCATABLE CLASS components
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to