This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
unformatted input from files in g77?
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 15 Mar 2002 14:08:22 -0500 (EST)
- Subject: unformatted input from files in g77?
Hello,
In recompiling a fortran program that builds
fine under Irix's f77 compiler I noticed that
g77 2.95.4 and 3.0.4 both choke on the following.
READ(UNIT=13,*) UR(1), UR(2), UR(3)
...with the compile time error messsage...
working3.f: In program `MAIN__':
working3.f:144:
READ(UNIT=13,*) UR(1), UR(2), UR(3)
^
Invalid form for READ statement at (^)
where UR are DOUBLE PRECISION variables and
unit 13 is an file opened for reading. Oddly
it appears that unformmatted input is allowed
from the standard input...
READ(*,*) UR(1), UR(2), UR(3)
and unformatted output is allowed to both a
file or standard output...
WRITE(UNIT=13,*) UR(1), UR(2), UR(3)
WRITE(*,*) UR(1), UR(2), UR(3)
Is this a known issue in g77? I couldn't find a clear
mention of this anywhere but the lack of unformatted
input from files seems like a major lose of functionality.
Thanks in advance for any information on this.
Jack Howarth