[flang-commits] [flang] [flang][runtime] Don't use -1 in I/O API for "default unit" (PR #76642)

via flang-commits flang-commits at lists.llvm.org
Sat Dec 30 18:43:46 PST 2023


================
@@ -190,7 +196,7 @@ Cookie IONAME(BeginInquireIoLength)(
 // This call makes the runtime library defer those particular error/end
 // conditions to the EndIoStatement() call rather than terminating
 // the image.  E.g., for READ(*,*,END=666) A, B, (C(J),J=1,N)
-//   Cookie cookie{BeginExternalListInput(DefaultUnit,__FILE__,__LINE__)};
+//   Cookie cookie{BeginExternalListInput(DefaultOutputUnit,__FILE__,__LINE__)};
----------------
vdonaldson wrote:

Did you mean `DefaultInputUnit` in this comment?

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


More information about the flang-commits mailing list