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: unassig...@gcc.gnu.org ReportedBy: bur...@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