This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/32784] [win32] Using 'con' as assigned file generates Fortran runtime error: File 'con' does not exist
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2007 02:25:46 -0000
- Subject: [Bug libfortran/32784] [win32] Using 'con' as assigned file generates Fortran runtime error: File 'con' does not exist
- References: <bug-32784-14861@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-07-17 02:25 -------
Under Cygwin we get:
$ ./a.exe
At line 4 of file test.f90 (unit = 29, file = '')
Fortran runtime error: File 'con' already exists
con is a reserved device name from MS DOS:
See http://www.tcs.org/ioport/jul98/driver-3.htm
Under cygwin, if I just try to cat to con:
$ cat test.f90 | con
-bash: /home/Jerry/bin/con: Bad file descriptor
This problem has nothing to do with gfortran. I am afraid you will have to
edit and change the name to something other than 'con'
Even if I try to edit a file named con.f with vi it locks up vi.
Unless someone has a better idea, I suggest closing this bug as invalid. How
difficult is it to change that name from 'con' to something else?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32784