[flang-commits] [flang] [flang] Catch READ(... SIZE=) with NML= or FMT=* (PR #71235)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Nov 6 08:38:39 PST 2023


klausler wrote:

> Curiosity question: Do we know why this constraint was added?

My experience is that `SIZE=` is hard to get right for list-directed (incl. namelist) input because there are situations requiring look-ahead, and correct accounting sometime requires subtraction.  So the constraint allows an implementation to not have to worry about those hard cases.

Since f18 gets them right, I think, we could accept this usage with a portability warning.

https://github.com/llvm/llvm-project/pull/71235


More information about the flang-commits mailing list