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

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Dec 13 11:56:58 PST 2023


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

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

>From d2af1bf3d8a58c50c07562d797ff987251964665 Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Wed, 13 Dec 2023 11:55:06 -0800
Subject: [PATCH] [flang][runtime] Fix spelling of INQUIRE result

Embarrassingly, the runtime was returning UNKNONN rather than UNKNOWN
for things like INQUIRE(..., FORMAT=).
---
 flang/runtime/io-stmt.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 =



More information about the flang-commits mailing list