This is the mail archive of the gcc@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]

question on GNU Fortran Compiler


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


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