question on GNU Fortran Compiler

Graziano Servizi io@sarastro.bo.infn.it
Thu Aug 29 01:42:00 GMT 2002


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



More information about the Gcc mailing list