if (const auto *baseBlock{FindCommonBlockContaining(base)}) {
if (baseBlock == &commonBlock) {
if (base.offset() != symbol.offset() - dep.offset ||
- std::find(details.objects().begin(), details.objects().end(),
- base) != details.objects().end()) {
+ llvm::is_contained(details.objects(), base)) {
context_.Say(errorSite,
"'%s' is storage associated with '%s' by EQUIVALENCE elsewhere in COMMON block /%s/"_err_en_US,
symbol.name(), base.name(), commonBlock.name());