Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!mcnc!gatech!akgua!codas!peora!ucf-cs.ucf.edu!novavax!hcx1!daver
From: daver@hcx1.UUCP
Newsgroups: comp.lang.fortran
Subject: end= with no input variables ?
Message-ID: <44400008@hcx1>
Date: Mon, 5-Jan-87 10:38:00 EST
Article-I.D.: hcx1.44400008
Posted: Mon Jan  5 10:38:00 1987
Date-Received: Tue, 6-Jan-87 22:48:55 EST
Lines: 19
Nf-ID: #N:hcx1:44400008:000:654
Nf-From: hcx1.UUCP!daver    Jan  5 10:38:00 1987


Suppose the following statement is used to read from an empty file:

             read (11, '(i5)', end=10) i

The end= branch should be taken, because an "end-file" record is 
encountered.

Now suppose no input variable is given:

             read (11, '(i5)', end=10)

Should the end= branch be taken or not (using the same empty file) ?
I know of 2 compilers which do not take the branch.  Another one does.

The standard describes what happens during a data transfer, but in the
second example, no data is being transferred.  I see no explicit mention
of when an end-of-file should be detected except for the vague phrase
"when a read is executed".