This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
namelist problem
- From: Uttam Pawar <uttamp at us dot ibm dot com>
- To: fortran at gcc dot gnu dot org
- Date: Thu, 08 Dec 2005 11:40:21 -0800
- Subject: namelist problem
$ cat test.f95
program test_namelist
call test1
contains
subroutine test1()
real :: array(6)
namelist /list/array
read (*, nml=list)
write (*, nml=list)
end
$ gfortran test.f95
$ ./a.out
&list array(1:5)=1.5
output
$ &LIST
ARRAY= 1.500000 , 0.000000 , 2.5253750E-29, 1.4012985E-45,
1.5694543E-43, 131089.0 , /
Shouldn't this set all the elements of array(1:6)=1.5, instead of just
the first element? This looks like a bug to me.
Thanks,
Uttam