diff --git a/flang-rt/include/flang-rt/runtime/io-stmt.h b/flang-rt/include/flang-rt/runtime/io-stmt.h index c9c193335c940..b6e95d155d01c 100644 --- a/flang-rt/include/flang-rt/runtime/io-stmt.h +++ b/flang-rt/include/flang-rt/runtime/io-stmt.h @@ -156,7 +156,7 @@ class IoStatementState { if (at_ && at_ < limit_) { return *at_; } else { - return std::nullopt; + return Fortran::common::nullopt; } } RT_API_ATTRS void NextRecord(IoStatementState &io) { @@ -200,7 +200,7 @@ class IoStatementState { byteCount = ch ? 1 : 0; return ch; } else if (!field->MustUseSlowPath()) { - return std::nullopt; + return Fortran::common::nullopt; } } return GetCurrentCharSlow(byteCount);