Index: flang/runtime/time-intrinsic.cpp =================================================================== --- flang/runtime/time-intrinsic.cpp +++ flang/runtime/time-intrinsic.cpp @@ -36,7 +36,7 @@ // This is the fallback implementation, which should work everywhere. template double getCpuTime(fallback_implementation) { std::clock_t timestamp{std::clock()}; - if (timestamp != std::clock_t{-1}) { + if (timestamp != static_cast(-1)) { return static_cast(timestamp) / CLOCKS_PER_SEC; }