[all-commits] [llvm/llvm-project] a1db3e: [flang][runtime] Catch infinite unlimited format r...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Mar 10 09:35:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1db3e6274cfbf3e5d22de0826384c8ecab84441
      https://github.com/llvm/llvm-project/commit/a1db3e6274cfbf3e5d22de0826384c8ecab84441
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M flang/runtime/format-implementation.h

  Log Message:
  -----------
  [flang][runtime] Catch infinite unlimited format repetition better

The runtime check for infinite unlimited format repetition is missing
the case of implicit unlimited format repetition at the top level
without finding the next data edit descriptor that corresponds with
a data list item.

Replace the check with a Boolean flag that detects unlimited
repetition hitting a right parenthesis and restarting, and fail
when it happens the second time.

Differential Revision: https://reviews.llvm.org/D145745




More information about the All-commits mailing list