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: 23 Jul 2007 04:44:09 -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 #15 from dannysmith at users dot sourceforge dot net 2007-07-23 04:44 -------
(In reply to comment #13)
> Created an attachment (id=13950)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13950&action=view) [edit]
> Patch to provide conio support
>
> Danny, can you please check this new patch. Works on Cygwin as far as I can
> tell.
>
Not on mingw. If you run the app generated from conout.f in an environ that
dup's and redirects stderr, it appears to work. If you run from a plain
ordinary Windows console, I still get
Hello, world!
At line 2 of file a1.f (unit = 29, file = 'CONOUT$')
Fortran runtime error: Bad file descriptor
Try testing your cygwin-built app from DOS (with cygwin1.dll in %PATH, of
course).
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32784