This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/39668] New: Wrongly read namelist with two dimensional array.
- From: "toon at moene dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Apr 2009 20:36:18 -0000
- Subject: [Bug libfortran/39668] New: Wrongly read namelist with two dimensional array.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Fortran code:
INTEGER :: i(3,3)
namelist/namtest/i
i=0
OPEN(10)
CLOSE(10)
READ(10,namtest)
WRITE(6,namtest)
END
Namelist in fort.10:
&namtest
i(1,1)=1,2,3,
i(2,1)=4,5,6,
i(3,1)=7,8,9,
/
Print out of program:
&NAMTEST
I= 1, 4, 7, 0, 6,
8, 2*0 , 9,
/
Output should have been:
&NAMTEST
I= 1, 4, 7, 2, 5,
8, 3, 6, 9,
/
--
Summary: Wrongly read namelist with two dimensional array.
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toon at moene dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39668