C28-6003 printed page 23 says the first statement in the range of a DO must not be non-executable. FORMAT and FREQUENCY remain in the statement list. DIMENSION and EQUIVALENCE are dropped, and under --std=2 so is COMMON, so the DO records them. The check applies under --std=1 and --std=2, after a backwards range has already been rejected. A FORMAT or FREQUENCY that ends the range still uses the existing diagnostic. A labeled DIMENSION, EQUIVALENCE, or COMMON used as the terminal is dropped, so that error is a missing statement number. COMMON under --std=1 is still not in FORTRAN I. FORTRAN 0 does not apply the rule. The 1956 PAUSE and STOP sections take an omitted n to be 0, and the message now shows that 0.
8 lines
109 B
FortranFixed
8 lines
109 B
FortranFixed
C NOT AN I704 LISTING
|
|
PAUSE
|
|
I = 1
|
|
PRINT 1, I
|
|
1 FORMAT(1H ,I5)
|
|
STOP
|
|
END
|