public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24923] New: iostat on read
@ 2005-11-17 19:53 ray at ultramarine dot com
2005-11-17 20:06 ` [Bug fortran/24923] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ray at ultramarine dot com @ 2005-11-17 19:53 UTC (permalink / raw)
To: gcc-bugs
The following has a problem
integer buf(200),ios
buf(1) = -77
buf(2) = -77
open(10,file='cow',access='DIRECT',recl=100,iostat=ios)
print *,' open ios ',ios
read(10,rec=1,iostat=ios) buf
print *,' read ios ',ios
print *,' buf 1 2 ',buf(1),buf(2)
end
When executed it creates an empty file. When the first record is read, it
returns iostat=0 and changes the first two integers. Iostat should not be
zero because the read was not finished.
--
Summary: iostat on read
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ray at ultramarine dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/24923] iostat on read
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
@ 2005-11-17 20:06 ` pinskia at gcc dot gnu dot org
2005-11-17 20:10 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-17 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-17 20:06 -------
*** Bug 24921 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/24923] iostat on read
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
2005-11-17 20:06 ` [Bug fortran/24923] " pinskia at gcc dot gnu dot org
@ 2005-11-17 20:10 ` pinskia at gcc dot gnu dot org
2005-11-18 19:30 ` ray at ultramarine dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-17 20:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-11-17 20:10 -------
Actually this has already been fixed for 4.0.3 at least:
open ios 0
read ios 3
buf 1 2 -77 -77
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/24923] iostat on read
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
2005-11-17 20:06 ` [Bug fortran/24923] " pinskia at gcc dot gnu dot org
2005-11-17 20:10 ` pinskia at gcc dot gnu dot org
@ 2005-11-18 19:30 ` ray at ultramarine dot com
2005-11-18 20:03 ` pinskia at gcc dot gnu dot org
2005-11-18 20:51 ` ray at ultramarine dot com
4 siblings, 0 replies; 6+ messages in thread
From: ray at ultramarine dot com @ 2005-11-18 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ray at ultramarine dot com 2005-11-18 19:30 -------
(In reply to comment #2)
> Actually this has already been fixed for 4.0.3 at least:
> open ios 0
> read ios 3
> buf 1 2 -77 -77
>
Due to other bugs, I took your advice and downloaded a 4.1 snapshot
yesterday. With this, the program aborts with:
a.out: relocation error: a.out: undefined symbol: _gfortran_transfer_array
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/24923] iostat on read
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
` (2 preceding siblings ...)
2005-11-18 19:30 ` ray at ultramarine dot com
@ 2005-11-18 20:03 ` pinskia at gcc dot gnu dot org
2005-11-18 20:51 ` ray at ultramarine dot com
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-18 20:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-18 20:03 -------
(In reply to comment #3)
> a.out: relocation error: a.out: undefined symbol: _gfortran_transfer_array
That means your LD_LIBRARY_PATH is finding an old version of libgfortran.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/24923] iostat on read
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
` (3 preceding siblings ...)
2005-11-18 20:03 ` pinskia at gcc dot gnu dot org
@ 2005-11-18 20:51 ` ray at ultramarine dot com
4 siblings, 0 replies; 6+ messages in thread
From: ray at ultramarine dot com @ 2005-11-18 20:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from ray at ultramarine dot com 2005-11-18 20:51 -------
Subject: Re: iostat on read
On Fri, 18 Nov 2005, pinskia at gcc dot gnu dot org wrote:
>
>
> ------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-18 20:03 -------
> (In reply to comment #3)
> > a.out: relocation error: a.out: undefined symbol: _gfortran_transfer_array
>
> That means your LD_LIBRARY_PATH is finding an old version of libgfortran.
>
Thanks so much (thought it was statically linked). It
works now,
Ray
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24923
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-11-18 20:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 19:53 [Bug fortran/24923] New: iostat on read ray at ultramarine dot com
2005-11-17 20:06 ` [Bug fortran/24923] " pinskia at gcc dot gnu dot org
2005-11-17 20:10 ` pinskia at gcc dot gnu dot org
2005-11-18 19:30 ` ray at ultramarine dot com
2005-11-18 20:03 ` pinskia at gcc dot gnu dot org
2005-11-18 20:51 ` ray at ultramarine dot com
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).