public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry
@ 2005-12-14 18:44 mast at colorado dot edu
2005-12-26 6:00 ` [Bug libfortran/25419] " jvdelisle at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: mast at colorado dot edu @ 2005-12-14 18:44 UTC (permalink / raw)
To: gcc-bugs
When there is a read statement expecting a single entry and a single
comma is entered, the read expects more input.
The test program is:
stuff = 1
stuff2 = 2
write(*,'(1x,a,$)')'Enter 2 somethings: '
read(5,*)stuff,stuff2
write(*,'(1x,a,$)')'Enter something: '
read(5,*)stuff
call exit(0)
end
[ashtray] image 205 % gfortran -o inputbug inputbug.f
[ashtray] image 206 % ./inputbug
Enter 2 somethings: ,,
Enter something: ,
,
/
[ashtray] image 207 %
It does not accept a , as a default entry for a single number, although two
commas work when two numbers are expected. Once it gets one comma it even
refuses a / until a second return is entered.
This happens on Fedora Core 4 with gcc-gfortran-4.0.2-8.fc4
and on Mac OSX 10.4 with gcc version 4.1.0 20051026 (experimental)
--
Summary: gfortran read does not take comma for default on one
entry
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mast at colorado dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
@ 2005-12-26 6:00 ` jvdelisle at gcc dot gnu dot org
2005-12-28 6:59 ` jvdelisle at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-26 6:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jvdelisle at gcc dot gnu dot org 2005-12-26 06:00 -------
I have a fix for this already. Patch for submottal soon.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-12-26 06:00:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
2005-12-26 6:00 ` [Bug libfortran/25419] " jvdelisle at gcc dot gnu dot org
@ 2005-12-28 6:59 ` jvdelisle at gcc dot gnu dot org
2005-12-28 7:00 ` jvdelisle at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-28 6:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2005-12-28 06:59 -------
Subject: Bug 25419
Author: jvdelisle
Date: Wed Dec 28 06:59:35 2005
New Revision: 109099
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109099
Log:
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Allow comma to return a
null value (default).
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
2005-12-26 6:00 ` [Bug libfortran/25419] " jvdelisle at gcc dot gnu dot org
2005-12-28 6:59 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-28 7:00 ` jvdelisle at gcc dot gnu dot org
2005-12-30 7:04 ` jvdelisle at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-28 7:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2005-12-28 07:00 -------
Subject: Bug 25419
Author: jvdelisle
Date: Wed Dec 28 07:00:47 2005
New Revision: 109100
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109100
Log:
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25419
* gfortran.dg/comma.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/comma.f
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (2 preceding siblings ...)
2005-12-28 7:00 ` jvdelisle at gcc dot gnu dot org
@ 2005-12-30 7:04 ` jvdelisle at gcc dot gnu dot org
2006-01-01 2:45 ` jvdelisle at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2005-12-30 7:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2005-12-30 07:03 -------
The patch in comment #2 causes PR25594.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (3 preceding siblings ...)
2005-12-30 7:04 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 2:45 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:04 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 2:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-01-01 02:45 -------
Subject: Bug 25419
Author: jvdelisle
Date: Sun Jan 1 02:45:22 2006
New Revision: 109211
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109211
Log:
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25594
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Test for comma to return
a null value (default). Revert patch of 25419 on 2005-12-28.
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/list_read.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (4 preceding siblings ...)
2006-01-01 2:45 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:04 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:06 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 5:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2006-01-01 05:04 -------
Subject: Bug 25419
Author: jvdelisle
Date: Sun Jan 1 05:04:06 2006
New Revision: 109216
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109216
Log:
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25594
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Test for comma to return
a null value (default). Revert patch of 25419 on 2005-12-28.
Modified:
branches/gcc-4_1-branch/libgfortran/ChangeLog
branches/gcc-4_1-branch/libgfortran/io/list_read.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (5 preceding siblings ...)
2006-01-01 5:04 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:06 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:19 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 5:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jvdelisle at gcc dot gnu dot org 2006-01-01 05:06 -------
Subject: Bug 25419
Author: jvdelisle
Date: Sun Jan 1 05:06:05 2006
New Revision: 109217
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109217
Log:
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25419
* gfortran.dg/comma.f: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/comma.f
Modified:
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (6 preceding siblings ...)
2006-01-01 5:06 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:19 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-01-01 5:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jvdelisle at gcc dot gnu dot org 2006-01-01 05:16 -------
Fixed on 4.1 and 4.2
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libfortran/25419] gfortran read does not take comma for default on one entry
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
` (7 preceding siblings ...)
2006-01-01 5:16 ` jvdelisle at gcc dot gnu dot org
@ 2006-01-01 5:19 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01 5:19 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25419
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-01-01 5:19 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-14 18:44 [Bug libfortran/25419] New: gfortran read does not take comma for default on one entry mast at colorado dot edu
2005-12-26 6:00 ` [Bug libfortran/25419] " jvdelisle at gcc dot gnu dot org
2005-12-28 6:59 ` jvdelisle at gcc dot gnu dot org
2005-12-28 7:00 ` jvdelisle at gcc dot gnu dot org
2005-12-30 7:04 ` jvdelisle at gcc dot gnu dot org
2006-01-01 2:45 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:04 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:06 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:16 ` jvdelisle at gcc dot gnu dot org
2006-01-01 5:19 ` pinskia 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).