[all-commits] [llvm/llvm-project] 10f15e: [flang][runtime] Crash more informatively in defin...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Dec 11 11:28:59 PST 2023


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

  Changed paths:
    M flang/include/flang/Runtime/iostat.h
    M flang/runtime/descriptor-io.cpp
    M flang/runtime/iostat.cpp

  Log Message:
  -----------
  [flang][runtime] Crash more informatively in defined I/O error case (#74134)

Defined unformatted I/O is not allowed except from/to an external unit.
This restriction prohibits an INQUIRE(IOLENGTH=n) statement from using
derived types with defined unformatted output in its I/O list. The
runtime currently detects this case and crashes with an internal error;
this patch defines a new I/O error enum and causes the program to crash
with a more useful message.




More information about the All-commits mailing list