[all-commits] [llvm/llvm-project] 353d56: [flang][runtime] Fix fixed-width field internal wi...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Dec 11 13:05:43 PST 2023


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

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

  Log Message:
  -----------
  [flang][runtime] Fix fixed-width field internal wide character input (#74683)

There was some confusion about units (bytes vs characters) in the
handling of the amount of input remaining in fixed-width formatted input
fields. Clarify that any variable or parameter counting "remaining"
space in a field in the I/O runtime is always in units of bytes, and
make it so where it wasn't.

Fixes the bug(s) in
llvm-test-suite/Fortran/gfortran/regression/char4_iunit_2.f03, although
the test still won't pass due to its dependence on gfortran's
list-directed output spacing.




More information about the All-commits mailing list