================
@@ -119,6 +120,9 @@ template <Direction DIR> void
InternalIoStatementState<DIR>::BackspaceRecord() {
}
template <Direction DIR> int InternalIoStatementState<DIR>::EndIoStatement() {
+ if constexpr (DIR == Direction::Output) {
----------------
klausler wrote:
If it is possible for the buffer flush to raise an error that the program can
catch via `ERR=` or `IOSTAT=`, do this in `CompleteOperation` instead.
https://github.com/llvm/llvm-project/pull/85181
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits