Skip to content

Commit e8a9aa2

Browse files
authored
[flang] Fix "suspicious condition" in C++ usage (#82790)
Address a reported C++ coding "suspicious condition". Fixes #80807.
1 parent 081e202 commit e8a9aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/data-to-inits.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static const DerivedTypeSpec *HasDefaultInitialization(const Symbol &symbol) {
524524
directs.begin(), directs.end(), [](const Symbol &component) {
525525
return !IsAllocatable(component) &&
526526
HasDeclarationInitializer(component);
527-
})) {
527+
}) != directs.end()) {
528528
return derived;
529529
}
530530
}

0 commit comments

Comments
 (0)