Files
Eremey Valetov fbd23d45bd Place relative-constant definitions and reorder fixed-point multiplication.
C28-6003 pages 47 and 48 restrict where a relative constant may be
defined inside an input list. The check is --std=1 only. An
unparenthesised fixed-point multiply and divide is computed by
dividing the first factor first, under --std=1 and --std=2. A chain
or a list the checker cannot hold is an error, rather than a silent
left-to-right result.
2026-11-14 09:51:43 -05:00

23 lines
467 B
FortranFixed

C FIVE BARE DEFINITIONS MAY SIT LEFT OF A DO PARENTHESIS.
C NOT AN I704 LISTING.
DIMENSION A(1), B(1)
I = 1
J = 1
K = 1
L = 1
M = 1
N = 1
B(1) = 2.0
WRITE TAPE 1, I, J, K, L, M, B(1)
REWIND 1
READ TAPE 1, I, J, K, L, M, (B(N), N = 1, 1)
A(I) = 1.0
A(J) = 1.0
A(K) = 1.0
A(L) = 1.0
A(M) = 1.0
PRINT 1, A(1), B(1)
1 FORMAT(1H ,2F8.1)
STOP
END