[all-commits] [llvm/llvm-project] 9469dc: [flang][runtime] Handle unconsumed repeated list-d...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Dec 26 15:44:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9469dc38b01b857a6bef8a57480a30ddba61647d
      https://github.com/llvm/llvm-project/commit/9469dc38b01b857a6bef8a57480a30ddba61647d
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-12-26 (Tue, 26 Dec 2023)

  Changed paths:
    M flang/runtime/connection.cpp
    M flang/runtime/connection.h
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h

  Log Message:
  -----------
  [flang][runtime] Handle unconsumed repeated list-directed input items (#75400)

If list-directed input contains a repeated item ("20*123.0") that is not
fully consumed by the READ statement's data item list, the end of that
READ statement was repositioning the input to the repeated value
("123.0"), leading to later confusion. Cancel the input item repetition
during EndIoStatement() processing to prevent this misbehavior.

Fixes llvm-test-suite/Fortran/gfortran/regression/list_read_4.f90.




More information about the All-commits mailing list