This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]