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: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2007 08:42:20 -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 #11 from dannysmith at users dot sourceforge dot net 2007-07-22 08:42 -------
(In reply to comment #10)
> Here is a complete patch, tested on Cygwin. I need to test on mingw. Can
> anyone help with that?
>
open(unit=29,file='CONOUT$')
write(29,100)
100 format('Hello, world!')
end
On mingw, with your patch, I get this on stdout:
Hello, world!
and this on stderr:
At line 2 of file conout.f (unit = 29, file = 'CONOUT$')
Fortran runtime error: Bad file descriptor
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32784