Index: flang/runtime/dot-product.cpp =================================================================== --- flang/runtime/dot-product.cpp +++ flang/runtime/dot-product.cpp @@ -111,7 +111,7 @@ if constexpr (constexpr auto resultType{ GetResultType(XCAT, XKIND, YCAT, YKIND)}) { if constexpr (resultType->first == RCAT && - resultType->second <= RKIND) { + (resultType->second <= RKIND || RCAT == TypeCategory::Logical)) { return DoDotProduct, CppTypeFor>(x, y, terminator); }