This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
question on GNU Fortran Compiler
- From: Graziano Servizi <io at sarastro dot bo dot infn dot it>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 29 Aug 2002 10:42:08 +0200 (CEST)
- Subject: question on GNU Fortran Compiler
- Reply-to: Graziano dot Servizi at bo dot infn dot it (Graziano Servizi)
To whom it may concern
I'm using GNU Fortran under Linux RedHat 7.3 (kernel release 2.4.18-3).
Is there a way to use unit numbers greater or equal to 100 for the
'open' statement?
As you can see from the following 'stupid program' they are disallowed,
although the executable file is produced. The problem arose in porting
a Fortran code from another platform (SGI IRIX) where such unit numbers
were well working.
program stupid
open(100, file = 'stupid')
write(100, *) 'stupid'
end
$ g77 -o stupid stupid.f
$ stupid
open: illegal unit number
apparent state: internal I/O
lately writing direct unformatted external IO
$
--
__________________________________________________________________
_/_/_/ _/_/_/
Graziano Servizi _/ _/ _/ _/
c/o Dipartimento di Fisica _/ _/
via Irnerio, 46 _/ _/_/_/
40126 BOLOGNA (Italia) _/ _/_/ _/
_/ _/ _/
Tel.:(39)-051-2091123 _/ _/ _/ _/
E-Mail:servizi@bo.infn.it _/_/_/ _/_/_/