This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/32784] [win32] Using 'con' as assigned file generates Fortran runtime error: File 'con' does not exist



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]