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.
12 lines
256 B
FortranFixed
12 lines
256 B
FortranFixed
C WRITE TAPE DOES NOT TAKE THE DEFINITION PLACEMENT RULES.
|
|
C NOT AN I704 LISTING.
|
|
DIMENSION A(1), C(2)
|
|
I = 1
|
|
A(1) = 3.0
|
|
WRITE TAPE 1, I, A
|
|
C(2 * I) = 4.0
|
|
PRINT 1, C(2)
|
|
1 FORMAT(1H ,F8.1)
|
|
STOP
|
|
END
|