Files
Eremey Valetov 720f65ad81 Accept the 1954 EQUIVALENCE sentence and subscript expression.
The 10 November 1954 report shares bare names from the first word and allows a three-term subscript, including one product of two subscripts and one level of subscripted subscript. The later offset form and the seven FORTRAN I subscript forms stay in place for FORTRAN I and II. A DO parameter stays on those seven forms, including a zero addend. The type-1 and type-2 condition is the programmer's rule and is not diagnosed. The relative-constant requirement is not checked, because RELATIVE CONSTANTS is still rejected.

The local i704 tree still has no FORTRAN II system tape.
2026-11-12 12:40:41 -05:00

19 lines
470 B
FortranFixed

C FORTRAN 0 EQUIVALENCE. BARE NAMES SHARE FROM THE FIRST WORD.
C STDOUT IS THIS RUNTIME. NOT AN I704 LISTING.
DIMENSION B(2), C(4), M(3)
EQUIVALENCE (A, B, C), (K, M), (P, Q)
A = 7.0
B(2) = 8.0
C(3) = 9.0
K = 5
M(2) = 6
P = 3.5
EQUIVALENCE (R, S)
DIMENSION S(2)
R = 4.0
S(2) = 6.0
PRINT A, B(1), B(2), C(1), C(2), C(3), Q, K, M(1), M(2)
PRINT R, S(1), S(2)
STOP
END