This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24266] New: 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:28:23 -0000
- Subject: [Bug fortran/24266] New: ICE when writing to array of strings that is an elements of a user defined type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Latest CVS version of gfortran segfauls when writing to a
an array of strings that is part of a user defined type.
The behavior is very similiar to
PR 15966 (but not solved by that solution).
$ cat bug.f90
program main
implicit none
type ice
character(len=80) :: mess(10)
end type ice
type(ice) :: tp
! leads to ICE
write(tp%mess,*) "message"
end program main
$ gfortran bug.f90
bug.f90: In function ?MAIN__?:
bug.f90:10: 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.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/xxx/compiler/gcc
--enable-version-specific-runtime-libs
--with-gcc-version-trigger=/home/xxx/tmp/gcc/gcc/version.c
--enable-languages=c,c++,f95 --with-gmp=/home/xxx/compiler/gmp
--with-mpfr=/home/xxx/compiler/gmp
Thread model: posix
gcc version 4.1.0 20051007 (experimental)
--
Summary: ICE when writing to array of strings that is an elements
of a user defined type
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yosef at phys dot utb dot edu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24266