public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/18983] New: can't open /dev/null as an output file
@ 2004-12-14 13:35 Thomas dot Koenig at online dot de
  2004-12-14 22:14 ` [Bug libfortran/18983] " tobi at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Thomas dot Koenig at online dot de @ 2004-12-14 13:35 UTC (permalink / raw)
  To: gcc-bugs

$ cat devnull.f90
  open(10,file="/dev/null")
  write(10,*) "Hello, world"
end
$ gfortran devnull.f90
$ ./a.out
At line 2 of file devnull.f90
Fortran runtime error: Invalid argument
$ gfortran -v
Reading specs from /home/zfkts/lib/gcc/ia64-unknown-linux-gnu/4.0.0/specs
Configured with: ../gcc-4.0-20041212/configure --prefix=/home/zfkts
--enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041212 (experimental)

-- 
           Summary: can't open /dev/null as an output file
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Thomas dot Koenig at online dot de
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/18983] can't open /dev/null as an output file
  2004-12-14 13:35 [Bug libfortran/18983] New: can't open /dev/null as an output file Thomas dot Koenig at online dot de
@ 2004-12-14 22:14 ` tobi at gcc dot gnu dot org
  2004-12-29  9:58 ` bdavis at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-12-14 22:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-14 22:14:31
               date|                            |


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


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

* [Bug libfortran/18983] can't open /dev/null as an output file
  2004-12-14 13:35 [Bug libfortran/18983] New: can't open /dev/null as an output file Thomas dot Koenig at online dot de
  2004-12-14 22:14 ` [Bug libfortran/18983] " tobi at gcc dot gnu dot org
@ 2004-12-29  9:58 ` bdavis at gcc dot gnu dot org
  2005-01-15  8:11 ` cvs-commit at gcc dot gnu dot org
  2005-01-15  8:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-12-29  9:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis at gcc dot gnu dot org  2004-12-29 09:58 -------
http://gcc.gnu.org/ml/fortran/2004-12/msg00252.html

-- 


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


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

* [Bug libfortran/18983] can't open /dev/null as an output file
  2004-12-14 13:35 [Bug libfortran/18983] New: can't open /dev/null as an output file Thomas dot Koenig at online dot de
  2004-12-14 22:14 ` [Bug libfortran/18983] " tobi at gcc dot gnu dot org
  2004-12-29  9:58 ` bdavis at gcc dot gnu dot org
@ 2005-01-15  8:11 ` cvs-commit at gcc dot gnu dot org
  2005-01-15  8:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-15  8:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-15 08:11 -------
Subject: Bug 18983

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bdavis@gcc.gnu.org	2005-01-15 08:10:24

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

Log message:
	2005-01-15  Bud Davis  <bdavis9659@comcast.net>
	
	PR fortran/18983
	* io/transfer.c (st_write_done): only truncate when it
	is required.
	
	2005-01-15  Bud Davis  <bdavis9659@comcast.net>
	
	PR fortran/18983
	* gfortran.dg/write_to_null.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/write_to_null.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.4888&r2=1.4889
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.25&r2=1.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.145&r2=1.146



-- 


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


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

* [Bug libfortran/18983] can't open /dev/null as an output file
  2004-12-14 13:35 [Bug libfortran/18983] New: can't open /dev/null as an output file Thomas dot Koenig at online dot de
                   ` (2 preceding siblings ...)
  2005-01-15  8:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-15  8:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-15  8:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-15 08:48 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-01-15  8:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14 13:35 [Bug libfortran/18983] New: can't open /dev/null as an output file Thomas dot Koenig at online dot de
2004-12-14 22:14 ` [Bug libfortran/18983] " tobi at gcc dot gnu dot org
2004-12-29  9:58 ` bdavis at gcc dot gnu dot org
2005-01-15  8:11 ` cvs-commit at gcc dot gnu dot org
2005-01-15  8:48 ` 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).