Index: flang/runtime/assign.cpp =================================================================== --- flang/runtime/assign.cpp +++ flang/runtime/assign.cpp @@ -128,7 +128,7 @@ static bool MayAlias(const Descriptor &x, const Descriptor &y) { const char *xDesc{reinterpret_cast(&x)}; const char *xDescLast{xDesc + x.SizeInBytes()}; - const char *yDesc{reinterpret_cast(&x)}; + const char *yDesc{reinterpret_cast(&y)}; const char *yDescLast{yDesc + y.SizeInBytes()}; std::int64_t xLeast, xMost, yLeast, yMost; MaximalByteOffsetRange(x, xLeast, xMost);