This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51075] New: ICE with deferred-length character pointer component in derived types
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Nov 2011 10:22:26 +0000
- Subject: [Bug fortran/51075] New: ICE with deferred-length character pointer component in derived types
- Auto-submitted: auto-generated
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