diff --git a/flang/runtime/matmul.cpp b/flang/runtime/matmul.cpp --- a/flang/runtime/matmul.cpp +++ b/flang/runtime/matmul.cpp @@ -184,9 +184,11 @@ } SubscriptValue n{x.GetDimension(xRank - 1).Extent()}; if (n != y.GetDimension(0).Extent()) { - terminator.Crash("MATMUL: arrays do not conform (%jd != %jd)", + terminator.Crash("MATMUL: unacceptable operand shapes (%jdx%jd, %jdx%jd)", + static_cast(x.GetDimension(0).Extent()), static_cast(n), - static_cast(y.GetDimension(0).Extent())); + static_cast(y.GetDimension(0).Extent()), + static_cast(y.GetDimension(1).Extent())); } using WriteResult = CppTypeFor