[Bug fortran/51075] New: ICE with deferred-length character pointer component in derived types

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 10 10:35:00 GMT 2011


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

             Bug #: 51075
           Summary: ICE with deferred-length character pointer component
                    in derived types
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
        Depends on: 45170


The following program gives an ICE, which is maybe not surprising as
deferred-length components are not yet supported.

internal compiler error: in gfc_get_derived_type, at fortran/trans-types.c:2394

Expected:
- Short term: Reject it ("sorry not yet implemented")
- Long term: Support it.


 character(len=42), target, save :: A
 type :: t
   character(len=:), pointer :: P => A
 end type t
 type(T) :: X
end



More information about the Gcc-bugs mailing list