This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48923] New: Type with Allocatable Length Character Component
- From: "andrew.t.baldwin at me dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 7 May 2011 03:16:21 +0000
- Subject: [Bug fortran/48923] New: Type with Allocatable Length Character Component
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48923
Summary: Type with Allocatable Length Character Component
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andrew.t.baldwin@me.com
Using gfortran 4.7.0 20110430, when trying to compile the program
program qtest
type postman
character (len = :), allocatable :: mail
end type
type (postman) :: mrpman
mrpman%mail = 'test'
write (*, '(A)') mrpman%mail
end program qtest
I receive the error
qtest.f: In function âqtestâ:
qtest.f:1:0: internal compiler error: in gfc_get_derived_type, at
fortran/trans-types.c:2330
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The error goes away if the mail variable is not a component of the type
postman.