diff --git a/flang/lib/Evaluate/intrinsics.cpp b/flang/lib/Evaluate/intrinsics.cpp index d647bdc3399d..4dd0df1c9693 100644 --- a/flang/lib/Evaluate/intrinsics.cpp +++ b/flang/lib/Evaluate/intrinsics.cpp @@ -1496,8 +1496,6 @@ std::optional IntrinsicInterface::Match( if (!arrayArg) { arrayArg = arg; arrayArgName = d.keyword; - } else { - argOk &= rank == arrayArg->Rank(); } break; case Rank::coarray: