This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
- From: "yosef at phys dot utb dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2005 21:36:02 -0000
- Subject: [Bug fortran/24266] ICE when writing to array of strings that is an elements of a user defined type
- References: <bug-24266-9062@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from yosef at phys dot utb dot edu 2005-10-07 21:36 -------
This bug also seems to cause a segfault when
writing to a standard array of strings.
program main
implicit none
type ice
character(len=80) :: mess(10)
end type ice
character(len=80) :: smess(10)
type(ice) :: tp
! leads to ICE (but only when 2nd write is included)
write(smess,*) "message"
write(tp%mess,*) "message"
end program main
$ gfortan bug2.f90
bug2.f90: In function ?MAIN__?:
bug2.f90:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24266