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 #27 from steven dot chapel at sbcglobal dot net  2007-08-12 23:23 -------
(In reply to comment #26)
> Which means it worked in g77 and not in gfortran.

I don't know if it never worked in gfortran. Until a few days ago, the only
MinGW build of gfortran was a trunk version of 4.3.0. I haven't tested gfortran
4.2.1 or any other version yet.

> Also why does this program use
> con anyways, shouldn't it just use the default units which are
> connected to stdio/stdout anyways as they might not be connected to
> the console anyways?

The program opens a large number of file units, some of them actual files, and
one of them 'con'. I believe one of them is also 'nul'. These are defined at
one place in the program that you can change (similar to the code in the sample
program in the first comment), so that at compile time you can change the names
of the files. That's just the way the program is written, and not being the
author, I can't reasonably change it all around to use the default units
instead.


-- 


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]