public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18778] New: ENDFILE is not functionnal
@ 2004-12-02  9:40 coudert at clipper dot ens dot fr
  2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: coudert at clipper dot ens dot fr @ 2004-12-02  9:40 UTC (permalink / raw)
  To: gcc-bugs

This bug seems not to have been reported yet. It is the cause of failure for the
NIST FM411 fortran test. The reduced test case is:
--------------------------------------------
      program test
      implicit none
      integer i

      endfile(8)
      rewind(8)
      read(8,end=0023) i
      print *, i
      stop
      
 0023 print *, 'End of file'
      stop
      end
--------------------------------------------

The correct behaviour is:
$ g77 test.f; ./a.out
 End of file

while gfortran currently doesn't handle it:
$ gfortran test.f; ./a.out
At line 7 of file test.f
Fortran runtime error: Corrupt unformatted sequential file

[This was tested on i686/linux with gcc version 4.0.0 20041202]

-- 
           Summary: ENDFILE is not functionnal
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coudert at clipper dot ens dot fr
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
@ 2004-12-02 11:45 ` bdavis at gcc dot gnu dot org
  2004-12-02 11:46 ` [Bug libfortran/18778] " bdavis at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-12-02 11:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-12-02 11:45 -------
it is really not endfile, it is endfile not creating a file if it is called on a
unit that does not yet exist.


confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-02 11:45:37
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libfortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
  2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
@ 2004-12-02 11:46 ` bdavis at gcc dot gnu dot org
  2004-12-24  3:36 ` bdavis at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-12-02 11:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-12-02 11:46 -------
changed component to library

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |libfortran


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libfortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
  2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
  2004-12-02 11:46 ` [Bug libfortran/18778] " bdavis at gcc dot gnu dot org
@ 2004-12-24  3:36 ` bdavis at gcc dot gnu dot org
  2005-01-01  2:14 ` bdavis at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-12-24  3:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-12-24 03:36 -------
patch here:


http://gcc.gnu.org/ml/fortran/2004-12/msg00228.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libfortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
                   ` (2 preceding siblings ...)
  2004-12-24  3:36 ` bdavis at gcc dot gnu dot org
@ 2005-01-01  2:14 ` bdavis at gcc dot gnu dot org
  2005-01-16 20:44 ` cvs-commit at gcc dot gnu dot org
  2005-01-16 20:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2005-01-01  2:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2005-01-01 02:14 -------
re-patch:

http://gcc.gnu.org/ml/fortran/2005-01/msg00004.html

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libfortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
                   ` (3 preceding siblings ...)
  2005-01-01  2:14 ` bdavis at gcc dot gnu dot org
@ 2005-01-16 20:44 ` cvs-commit at gcc dot gnu dot org
  2005-01-16 20:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-16 20:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-16 20:44 -------
Subject: Bug 18778

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bdavis@gcc.gnu.org	2005-01-16 20:44:01

Modified files:
	gcc/testsuite  : ChangeLog 
	libgfortran    : ChangeLog 
	libgfortran/io : transfer.c 
Added files:
	gcc/testsuite/gfortran.dg: endfile_2.f90 

Log message:
	2005-01-16  Bud Davis  <bdavis9659@comcast.net>
	
	PR fortran/18778
	* gfortran.dg/endfile_2.f90: New test.
	
	* io/transfer.c (us_read): no bytes available is not a
	runtime error.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/endfile_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4895&r2=1.4896
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.146&r2=1.147
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.26&r2=1.27



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libfortran/18778] ENDFILE is not functionnal
  2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
                   ` (4 preceding siblings ...)
  2005-01-16 20:44 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-16 20:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-16 20:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-16 20:55 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18778


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-16 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02  9:40 [Bug fortran/18778] New: ENDFILE is not functionnal coudert at clipper dot ens dot fr
2004-12-02 11:45 ` [Bug fortran/18778] " bdavis at gcc dot gnu dot org
2004-12-02 11:46 ` [Bug libfortran/18778] " bdavis at gcc dot gnu dot org
2004-12-24  3:36 ` bdavis at gcc dot gnu dot org
2005-01-01  2:14 ` bdavis at gcc dot gnu dot org
2005-01-16 20:44 ` cvs-commit at gcc dot gnu dot org
2005-01-16 20:55 ` 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).