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.
9 lines
166 B
FortranFixed
9 lines
166 B
FortranFixed
C FORTRAN 0 DOES NOT APPLY THE C28-6003 DO-FIRST RULE.
|
|
DO 10 I = 1, 2
|
|
FREQUENCY (10, 1, 1)
|
|
J = I
|
|
10 J = J
|
|
PRINT J
|
|
STOP
|
|
END
|