[Bug fortran/48654] New: ICE on return of derived type with allocatable-length character component

damian at rouson dot net gcc-bugzilla@gcc.gnu.org
Sun Apr 17 19:47:00 GMT 2011


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

           Summary: ICE on return of derived type with allocatable-length
                    character component
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: damian@rouson.net


Created attachment 24022
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24022
A more involved example that is closer to the intended use.

gfortran 4.6 give an ICE on the code below (and on the attached more involved
example):

$ cat message.F90
module message_module
  type message
    character(:) ,allocatable :: string
  end type
contains
  type(message) function new_message()
  end function
end module

$ gfortran -c message.F90
message.F90:6:0: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:2298
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gfortran --version
GNU Fortran (GCC) 4.6.1 20110325 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.



More information about the Gcc-bugs mailing list