[flang-commits] [PATCH] D153916: [flang][NFC] Add F2023X documentation

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Jun 29 08:26:32 PDT 2023


klausler added a comment.

In D153916#4459352 <https://reviews.llvm.org/D153916#4459352>, @kiranchandramohan wrote:

> There is probably a requirement to provide warnings or errors if these limits are breached for source line length.
> 6.3.2.1 A line shall contain at most ten thousand characters.
> 6.3.2.6 A statement shall not have more than one million characters.

Fortran compilers are supposed to check numbered constraints and report on violations, but "shall"s in other text are optional.  (And it's all on the honor system anyway -- there's no validation test suite or certification process.)

The 10,000 character limit per line would be easy to check, but the statement limit on characters would require some thought and would cost more than o(statements).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153916/new/

https://reviews.llvm.org/D153916



More information about the flang-commits mailing list