We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeedb1e commit 92ecc22Copy full SHA for 92ecc22
flang/lib/Semantics/resolve-names.cpp
@@ -8525,7 +8525,9 @@ void ResolveNamesVisitor::AnalyzeStmtFunctionStmt(
8525
Symbol *symbol{name.symbol};
8526
auto *details{symbol ? symbol->detailsIf<SubprogramDetails>() : nullptr};
8527
if (!details || !symbol->scope() ||
8528
- &symbol->scope()->parent() != &currScope()) {
+ &symbol->scope()->parent() != &currScope() || details->isInterface() ||
8529
+ details->isDummy() || details->entryScope() ||
8530
+ details->moduleInterface() || symbol->test(Symbol::Flag::Subroutine)) {
8531
return; // error recovery
8532
}
8533
// Resolve the symbols on the RHS of the statement function.
0 commit comments