[Bug fortran/46838] [OOP] Initialization of polymorphic allocatable components

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 29 16:31:00 GMT 2010


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

--- Comment #8 from janus at gcc dot gnu.org 2010-12-29 16:30:47 UTC ---
r168322 fixes the original test case as well as the reduction in comment #1.

ToDo: The array version (cf. comment #1) still ICEs:


  implicit none

  type indx_map
  end type

  type desc_type
    class(indx_map), allocatable :: indxmap(:)
  end type

  type(desc_type)  :: desc
  if (allocated(desc%indxmap)) call abort()

end



internal compiler error: in gfc_conv_descriptor_data_get, at
fortran/trans-array.c:144



More information about the Gcc-bugs mailing list