This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH
- From: "jean-pierre dot flament at univ-lille1 dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2003 13:10:45 -0000
- Subject: [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
Summary: error in reading a namelist when it is predeced by a
line with a SLASH
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: toon at moene dot indiv dot nluug dot nl
ReportedBy: jean-pierre dot flament at univ-lille1 dot fr
CC: gcc-bugs at gcc dot gnu dot org
in the follwing flow of data ($FILE is not a namelist)
$FILE
pseu dir/file
$END
$CNTRL ispher=1,nosym=0,runflg=0,noprop=0, $END
the namelist $CNTRL is not read
integer ispher,nosym,runflg,noprop
ispher = 0
nosym = 0
runflg = 0
noprop = 0
read(5,cntrl)
* gives a value of 0 instead of 1 for ispher
* putting $CNTRL before the "group data" $FILE gives the correct result
as well as inserting any line between the $END of $FILE and $CNTRL)
I guess that the / in dir/file is the reason of the problem.
I can provide you with a sample program and data reproducing the bug.