public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH
@ 2003-11-03 13:10 jean-pierre dot flament at univ-lille1 dot fr
2003-11-03 13:12 ` [Bug fortran/12884] " jean-pierre dot flament at univ-lille1 dot fr
` (17 more replies)
0 siblings, 18 replies; 19+ messages in thread
From: jean-pierre dot flament at univ-lille1 dot fr @ 2003-11-03 13:10 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug fortran/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
@ 2003-11-03 13:12 ` jean-pierre dot flament at univ-lille1 dot fr
2003-11-15 12:41 ` [Bug libf2c/12884] " toon at moene dot indiv dot nluug dot nl
` (16 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: jean-pierre dot flament at univ-lille1 dot fr @ 2003-11-03 13:12 UTC (permalink / raw)
To: gcc-bugs
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
------- Additional Comments From jean-pierre dot flament at univ-lille1 dot fr 2003-11-03 13:12 -------
Created an attachment (id=5045)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5045&action=view)
comments, test program and test data
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
2003-11-03 13:12 ` [Bug fortran/12884] " jean-pierre dot flament at univ-lille1 dot fr
@ 2003-11-15 12:41 ` toon at moene dot indiv dot nluug dot nl
2003-12-28 2:41 ` bdavis9659 at comcast dot net
` (15 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-11-15 12:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2003-11-15 12:41 -------
Fails in 3.3 too. Actually a problem in libf2c, hence redirecting.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|fortran |libf2c
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-15 12:41:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
2003-11-03 13:12 ` [Bug fortran/12884] " jean-pierre dot flament at univ-lille1 dot fr
2003-11-15 12:41 ` [Bug libf2c/12884] " toon at moene dot indiv dot nluug dot nl
@ 2003-12-28 2:41 ` bdavis9659 at comcast dot net
2004-01-31 14:11 ` cvs-commit at gcc dot gnu dot org
` (14 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: bdavis9659 at comcast dot net @ 2003-12-28 2:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis9659 at comcast dot net 2003-12-28 01:40 -------
patch here http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02149.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (2 preceding siblings ...)
2003-12-28 2:41 ` bdavis9659 at comcast dot net
@ 2004-01-31 14:11 ` cvs-commit at gcc dot gnu dot org
2004-01-31 14:15 ` cvs-commit at gcc dot gnu dot org
` (13 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-31 14:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-31 14:11 -------
Subject: Bug 12884
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: toon@gcc.gnu.org 2004-01-31 14:11:50
Modified files:
libf2c : ChangeLog
libf2c/libI77 : rsne.c
Log message:
2004-01-31 Bud Davis <bdavis9659@comcast.net>
PR fortran/12884
* libI77/rsne.c: Enable reading a '/' when reading
a '$' delimited namelist.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libf2c/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.202&r2=1.202.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libf2c/libI77/rsne.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.12&r2=1.12.36.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (3 preceding siblings ...)
2004-01-31 14:11 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-31 14:15 ` cvs-commit at gcc dot gnu dot org
2004-01-31 14:20 ` toon at moene dot indiv dot nluug dot nl
` (12 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-31 14:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-31 14:15 -------
Subject: Bug 12884
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: toon@gcc.gnu.org 2004-01-31 14:15:00
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g77.f-torture/execute: 12884.f
Log message:
2004-01-31 Bud Davis <bdavis9659@comcast.net>
PR fortran/12884
* g77.f-torture/execute/12884.f: New test
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.34&r2=1.3389.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g77.f-torture/execute/12884.f.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (4 preceding siblings ...)
2004-01-31 14:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-31 14:20 ` toon at moene dot indiv dot nluug dot nl
2004-01-31 16:04 ` andreas dot meier_ at gmx dot de
` (11 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-01-31 14:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2004-01-31 14:19 -------
Fixed by Bud Davis' proposed patch, which I installed on 31/1/2004
Thanks, Bud !
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (5 preceding siblings ...)
2004-01-31 14:20 ` toon at moene dot indiv dot nluug dot nl
@ 2004-01-31 16:04 ` andreas dot meier_ at gmx dot de
2004-01-31 18:19 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: andreas dot meier_ at gmx dot de @ 2004-01-31 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From andreas dot meier_ at gmx dot de 2004-01-31 16:04 -------
What about mainline?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |toon at moene dot indiv dot
| |nluug dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (6 preceding siblings ...)
2004-01-31 16:04 ` andreas dot meier_ at gmx dot de
@ 2004-01-31 18:19 ` pinskia at gcc dot gnu dot org
2004-01-31 18:20 ` [Bug libf2c/12884] [3.5 Regression] " pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 18:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 18:19 -------
Lets reopen this until the tree-ssa gets merged and just say this is a regression for now.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libf2c/12884] [3.5 Regression] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (7 preceding siblings ...)
2004-01-31 18:19 ` pinskia at gcc dot gnu dot org
@ 2004-01-31 18:20 ` pinskia at gcc dot gnu dot org
2004-07-06 17:39 ` [Bug libfortran/12884] [3.5 Regression] [g77] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 18:20 -------
But lets suspend it then and wait and see about the tree-ssa merge.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |SUSPENDED
Summary|error in reading a namelist |[3.5 Regression] error in
|when it is predeced by a |reading a namelist when it
|line with a SLASH |is predeced by a line with a
| |SLASH
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [3.5 Regression] [g77] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (8 preceding siblings ...)
2004-01-31 18:20 ` [Bug libf2c/12884] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-07-06 17:39 ` pinskia at gcc dot gnu dot org
2004-09-09 18:34 ` [Bug libfortran/12884] [3.5 Regression w.r.t. g77] " toon at moene dot indiv dot nluug dot nl
` (7 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-06 17:39 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
Component|libf2c |libfortran
Last reconfirmed|2004-05-01 02:10:18 |2004-07-06 17:39:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [3.5 Regression w.r.t. g77] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (9 preceding siblings ...)
2004-07-06 17:39 ` [Bug libfortran/12884] [3.5 Regression] [g77] " pinskia at gcc dot gnu dot org
@ 2004-09-09 18:34 ` toon at moene dot indiv dot nluug dot nl
2004-09-24 4:09 ` [Bug libfortran/12884] [4.0.0 " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-09-09 18:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2004-09-09 18:34 -------
Not clear yet why it fails with libgfortran; error message:
At line 13 of file 12884.f
Fortran runtime error: Invalid character in namelist
This is the test case I use:
program nlist
integer ispher,nosym,runflg,noprop
namelist /cntrl/ ispher,nosym,runflg,noprop
ispher = 0
nosym = 0
runflg = 0
noprop = 0
write(1,*)' $FILE'
write(1,*)' pseu dir/file'
write(1,*)' $END'
write(1,*)' $CNTRL ispher=1,nosym=0,runflg=0,noprop=0, $END'
rewind(1)
read(1,cntrl)
write(6,cntrl)
end
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-07-06 17:39:25 |2004-09-09 18:34:41
date| |
Summary|[3.5 Regression] [g77] error|[3.5 Regression w.r.t. g77]
|in reading a namelist when |error in reading a namelist
|it is predeced by a line |when it is predeced by a
|with a SLASH |line with a SLASH
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [4.0.0 Regression w.r.t. g77] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (10 preceding siblings ...)
2004-09-09 18:34 ` [Bug libfortran/12884] [3.5 Regression w.r.t. g77] " toon at moene dot indiv dot nluug dot nl
@ 2004-09-24 4:09 ` pinskia at gcc dot gnu dot org
2005-01-06 14:40 ` [Bug libfortran/12884] [Regression " tobi at gcc dot gnu dot org
` (5 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-24 4:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-24 04:09 -------
Removing the patch keyword as the patch was only for libg2c which is not used for gfortran.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [Regression w.r.t. g77] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (11 preceding siblings ...)
2004-09-24 4:09 ` [Bug libfortran/12884] [4.0.0 " pinskia at gcc dot gnu dot org
@ 2005-01-06 14:40 ` tobi at gcc dot gnu dot org
2005-01-31 6:56 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-01-06 14:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |19292
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [Regression w.r.t. g77] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (12 preceding siblings ...)
2005-01-06 14:40 ` [Bug libfortran/12884] [Regression " tobi at gcc dot gnu dot org
@ 2005-01-31 6:56 ` pinskia at gcc dot gnu dot org
2005-04-18 7:44 ` [Bug libfortran/12884] [4.0] " fxcoudert at gcc dot gnu dot org
` (3 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-31 6:56 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [4.0] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (13 preceding siblings ...)
2005-01-31 6:56 ` pinskia at gcc dot gnu dot org
@ 2005-04-18 7:44 ` fxcoudert at gcc dot gnu dot org
2005-04-18 14:41 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
17 siblings, 0 replies; 19+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-04-18 7:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-18 07:44 -------
This is fixed by Paul's recent namelist patch, applied on mainline. Will be
fixed on 4.0 once it's reopened.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Last reconfirmed|2004-09-09 18:34:41 |2005-04-18 07:44:28
date| |
Summary|[Regression w.r.t. g77] |[4.0] error in reading a
|error in reading a namelist |namelist when it is predeced
|when it is predeced by a |by a line with a SLASH
|line with a SLASH |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [4.0] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (14 preceding siblings ...)
2005-04-18 7:44 ` [Bug libfortran/12884] [4.0] " fxcoudert at gcc dot gnu dot org
@ 2005-04-18 14:41 ` pinskia at gcc dot gnu dot org
2005-04-23 16:11 ` [Bug libfortran/12884] [4.0 only] " pault at gcc dot gnu dot org
2005-06-05 23:35 ` cvs-commit at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-18 14:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [4.0 only] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (15 preceding siblings ...)
2005-04-18 14:41 ` pinskia at gcc dot gnu dot org
@ 2005-04-23 16:11 ` pault at gcc dot gnu dot org
2005-06-05 23:35 ` cvs-commit at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-04-23 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pault at gcc dot gnu dot org 2005-04-23 16:11 -------
The namelist modifications implemented over the last week have resulted in
namelist io that is compliant with the standard and this bug is fixed, as of
GCC 4.1.0 20050423.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug libfortran/12884] [4.0 only] error in reading a namelist when it is predeced by a line with a SLASH
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
` (16 preceding siblings ...)
2005-04-23 16:11 ` [Bug libfortran/12884] [4.0 only] " pault at gcc dot gnu dot org
@ 2005-06-05 23:35 ` cvs-commit at gcc dot gnu dot org
17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-05 23:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-05 23:34 -------
Subject: Bug 12884
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: tobi@gcc.gnu.org 2005-06-05 23:33:52
Modified files:
gcc/fortran : ChangeLog gfortran.texi trans-io.c
gcc/testsuite : ChangeLog
gcc/testsuite/gfortran.dg: namelist_1.f90
libgfortran : ChangeLog
libgfortran/io : io.h list_read.c lock.c transfer.c write.c
Added files:
gcc/testsuite/gfortran.dg: namelist_11.f namelist_12.f
namelist_13.f90 namelist_14.f90
namelist_15.f90 namelist_16.f90
namelist_17.f90 namelist_18.f90
namelist_19.f90 namelist_2.f90
namelist_20.f90 namelist_3.f90
pr12884.f pr17285.f90 pr17472.f
pr18122.f90 pr18210.f90 pr18392.f90
pr19467.f90 pr19657.f
Log message:
gcc/fortran/
2005-06-05 Jakub Jelinek <jakub@redhat.com>
Backport from the mainline:
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/17472
PR fortran/18209
PR fortran/18396
PR fortran/19467
PR fortran/19657
* fortran/trans-io.c (gfc_build_io_library_fndecls): Create
declaration for st_set_nml_var and st_set_nml_var_dim. Remove
declarations of old namelist functions.
(build_dt): Simplified call to transfer_namelist_element.
(nml_get_addr_expr): Generates address expression for start of
object data. New function.
(nml_full_name): Qualified name for derived type components. New
function.
(transfer_namelist_element): Modified for calls to new functions
and improved derived type handling.
libgfortran/
2005-06-05 Jakub Jelinek <jakub@redhat.com>
Backport from the mainline:
2005-04-18 Paul Thomas <pault@gcc.gnu.org>
Jerry DeLisle <jvdelisle@verizon.net>
* io/write.c (nml_write_obj): Provide 1 more byte for ext_name.
* io/list_read.c (nml_get_obj_data): Put extra brackets in get_mem
call for ext_name. These fix the bug reported by Jerry DeLisle to
the fortran list and are based on his suggested fix.
2005-04-18 Paul Thomas <pault@gcc.gnu.org>
* io/list_read.c (nml_touch_nodes, nml_read_obj,
nml_get_obj_data): Fix memory leaks in code for derived types.
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
* io/list_read.c (eat_separator): at_eol = 1 replaced
(zapped at some time?).
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
PR libgfortran/12884
PR libgfortran/17285
PR libgfortran/18122
PR libgfortran/18210
PR libgfortran/18392
PR libgfortran/18591
PR libgfortran/18879
* io/io.h (nml_ls): Declare.
(namelist_info): Modify for arrays.
* io/list_read.c (namelist_read): Reduced to call to new functions.
(match_namelist_name): Simplified.
(nml_query): Handles stdin queries ? and =?. New function.
(nml_get_obj_data): Parses object name. New function.
(touch_nml_nodes): Marks objects for read. New function.
(untouch_nml_nodes): Resets objects. New function.
(parse_qualifier): Parses and checks qualifiers. New function
(nml_read_object): Reads and stores object data. New function.
(eat_separator): No new_record on '/' in namelist.
(finish_separator): No new_record on '/' in namelist.
(read_logical): Error return for namelist.
(read_integer): Error return for namelist.
(read_complex): Error return for namelist.
(read_real): Error return for namelist.
* io/lock.c (library_end): Free extended namelist_info types.
* io/transfer.c (st_set_nml_var): Modified for arrays.
(st_set_nml_var_dim): Dimension descriptors. New function.
* io/write.c (namelist_write): Reduced to call to new functions.
(nml_write_obj): Writes output for object. New function.
(write_integer): Suppress leading blanks for repeat counts.
(write_int): Suppress leading blanks for repeat counts.
(write_float): Suppress leading blanks for repeat counts.
(output_float): Suppress leading blanks for repeat counts.
gcc/testsuite/
2005-06-05 Jakub Jelinek <jakub@redhat.com>
Backport from the mainline:
2005-04-17 Paul Thomas <pault@gcc.gnu.org>
PR fortran/17472
PR fortran/18209
PR fortran/18396
PR fortran/19467
PR fortran/19657
* fortran/trans-io.c (gfc_build_io_library_fndecls): Create
declaration for st_set_nml_var and st_set_nml_var_dim. Remove
declarations of old namelist functions.
(build_dt): Simplified call to transfer_namelist_element.
(nml_get_addr_expr): Generates address expression for start of
object data. New function.
(nml_full_name): Qualified name for derived type components. New
function.
(transfer_namelist_element): Modified for calls to new functions
and improved derived type handling.
PR libfortran/12884 gfortran.dg/pr12884.f: New test
PR libfortran/17285 gfortran.dg/pr17285.f90: New test
PR libfortran/17472, 18396, 18209 gfortran.dg/pr17472.f: New test
PR libfortran/18122, 18591 gfortran.dg/pr18122.f90: New test
PR libfortran/18210 gfortran.dg/pr18210.f90: New test
PR libfortran/18392 gfortran.dg/pr18392.f90: New test
PR libfortran/19467 gfortran.dg/pr19467.f90: New test
PR libfortran/19657 gfortran.dg/pr19657.f90: New test
* gfortran.dg/namelist_1.f90: Correct comment (PUBLIC and PRIVATE wrong way round).
* gfortran.dg/namelist_2.f90: Variables with INTENT(IN) cannot be in namelists. New test
* gfortran.dg/namelist_3.f90: Pointers cannot be in namelists. New test
* gfortran.dg/namelist_11.f: Tests reals and qualifiers in namelist. New test
* gfortran.dg/namelist_12.f: Tests integers and qualifiers in namelist. New test
* gfortran.dg/namelist_13.f90: Tests derived types in namelist. New test
* gfortran.dg/namelist_14.f90: Tests trans-io.c namelist support. New test
* gfortran.dg/namelist_15.f90: Tests arrays of derived types in namelist. New test
* gfortran.dg/namelist_16.f90: Tests complex in namelist. New test
* gfortran.dg/namelist_17.f90: Tests logical in namelist. New test
* gfortran.dg/namelist_18.f90: Tests charcter delimiters in namelist. New test
* gfortran.dg/namelist_19.f90: Tests namelist errors. New test
* gfortran.dg/namelist_20.f90: Tests negative bounds for explicit arrays. New test
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.70&r2=1.335.2.71
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.texi.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.10.8.2&r2=1.10.8.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.33.2.2&r2=1.33.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.233&r2=1.5084.2.234
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_11.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_12.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_13.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_14.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_15.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_16.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_17.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_18.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_19.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_2.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_20.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_3.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr12884.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr17285.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr17472.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr18122.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr18210.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr18392.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr19467.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pr19657.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1&r2=1.1.18.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.47&r2=1.163.2.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/io.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.16.10.1&r2=1.16.10.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/list_read.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.14.2.1&r2=1.14.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/lock.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5&r2=1.5.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.32.2.4&r2=1.32.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/write.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.23.2.7&r2=1.23.2.8
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12884
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2005-06-05 23:35 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-03 13:10 [Bug fortran/12884] New: error in reading a namelist when it is predeced by a line with a SLASH jean-pierre dot flament at univ-lille1 dot fr
2003-11-03 13:12 ` [Bug fortran/12884] " jean-pierre dot flament at univ-lille1 dot fr
2003-11-15 12:41 ` [Bug libf2c/12884] " toon at moene dot indiv dot nluug dot nl
2003-12-28 2:41 ` bdavis9659 at comcast dot net
2004-01-31 14:11 ` cvs-commit at gcc dot gnu dot org
2004-01-31 14:15 ` cvs-commit at gcc dot gnu dot org
2004-01-31 14:20 ` toon at moene dot indiv dot nluug dot nl
2004-01-31 16:04 ` andreas dot meier_ at gmx dot de
2004-01-31 18:19 ` pinskia at gcc dot gnu dot org
2004-01-31 18:20 ` [Bug libf2c/12884] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-06 17:39 ` [Bug libfortran/12884] [3.5 Regression] [g77] " pinskia at gcc dot gnu dot org
2004-09-09 18:34 ` [Bug libfortran/12884] [3.5 Regression w.r.t. g77] " toon at moene dot indiv dot nluug dot nl
2004-09-24 4:09 ` [Bug libfortran/12884] [4.0.0 " pinskia at gcc dot gnu dot org
2005-01-06 14:40 ` [Bug libfortran/12884] [Regression " tobi at gcc dot gnu dot org
2005-01-31 6:56 ` pinskia at gcc dot gnu dot org
2005-04-18 7:44 ` [Bug libfortran/12884] [4.0] " fxcoudert at gcc dot gnu dot org
2005-04-18 14:41 ` pinskia at gcc dot gnu dot org
2005-04-23 16:11 ` [Bug libfortran/12884] [4.0 only] " pault at gcc dot gnu dot org
2005-06-05 23:35 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).