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.
16 lines
326 B
FortranFixed
16 lines
326 B
FortranFixed
C THE PAGE 48 PLACEMENT RULES ARE NOT APPLIED UNDER STD 2.
|
|
C NOT AN I704 LISTING.
|
|
DIMENSION A(2)
|
|
I = 1
|
|
A(1) = 4.0
|
|
A(2) = 5.0
|
|
WRITE TAPE 1, I, A(1)
|
|
REWIND 1
|
|
I = 2
|
|
A(1) = 0.0
|
|
READ TAPE 1, I, A(I)
|
|
PRINT 1, I, A(1)
|
|
1 FORMAT(1H ,I5,F8.1)
|
|
STOP
|
|
END
|