This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/18392] New: segfault on derived type namelist input
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2004 08:07:24 -0000
- Subject: [Bug libfortran/18392] New: segfault on derived type namelist input
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat foo.f90
program main
implicit none
type foo
integer a
real b
end type foo
type(foo) :: a
namelist /nl/ a
read (*,nl)
end program main
$ gfortran -v
Reading specs from /home/zfkts/lib/gcc/ia64-unknown-linux-gnu/4.0.0/specs
Configured with: ../gcc-4.0-20041107/configure --prefix=/home/zfkts
--enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041107 (experimental)
$ gfortran foo.f90
$ ./a.out
&NL
A%A = 10,
Segmentation fault
According to Richard Maine (who knows the Fortran standard much
better than I do :-) on <m1is8gaw55.fsf@MLMCE0000L22801.local>,
this input should be legal.
--
Summary: segfault on derived type namelist input
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Thomas dot Koenig at online dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: ia64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18392