Flang-RT
This demo uses a modified version of Flang-RT 20.1.7
.
Because Flang-RT must support a wide array of FORTRAN standards, not every valid call of FORMAT
in this demo will be supported across all versions of FORTRAN.
For instance, the following is unsupported as of FORTRAN 95:
WRITE(*, "(5HHello)")
But most compilers will still compile the above (albeit with warnings if you set the -std
flag).
Comma Linting Unsupported
The following statement:
10 FORMAT(I2 I2)
WRITE(*, 10) 20, 30
Will normally produce the Flang compiler error:
error: Expected ',' or ')' in format expression
10 FORMAT(I2 I2)
However, the Flang runtime library does not check for the existence of these commas itself when reading through print statements, so neither does this tool.