[flang-commits] [flang] [flang][runtime] Fix spelling of INQUIRE result (PR #75372)

via flang-commits flang-commits at lists.llvm.org
Wed Dec 13 11:57:32 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: Peter Klausler (klausler)

<details>
<summary>Changes</summary>

Embarrassingly, the runtime was returning UNKNONN rather than UNKNOWN for things like INQUIRE(..., FORMAT=).

---
Full diff: https://github.com/llvm/llvm-project/pull/75372.diff


1 Files Affected:

- (modified) flang/runtime/io-stmt.cpp (+1-1) 


``````````diff
diff --git a/flang/runtime/io-stmt.cpp b/flang/runtime/io-stmt.cpp
index dedf1f8364ad37..4072dbf2659449 100644
--- a/flang/runtime/io-stmt.cpp
+++ b/flang/runtime/io-stmt.cpp
@@ -1346,7 +1346,7 @@ bool InquireUnconnectedFileState::Inquire(
   case HashInquiryKeyword("SEQUENTIAL"):
   case HashInquiryKeyword("STREAM"):
   case HashInquiryKeyword("UNFORMATTED"):
-    str = "UNKNONN";
+    str = "UNKNOWN";
     break;
   case HashInquiryKeyword("READ"):
     str =

``````````

</details>


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


More information about the flang-commits mailing list