Skip to content

Commit 0bd861a

Browse files
committed
[Flang] Use specific symbol rather than generic symbol in procedureInterface to declare procedure pointer.
1 parent b99163f commit 0bd861a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Semantics/resolve-names.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5648,7 +5648,9 @@ void DeclarationVisitor::Post(const parser::ProcDecl &x) {
56485648
const auto &name{std::get<parser::Name>(x.t)};
56495649
const Symbol *procInterface{nullptr};
56505650
if (interfaceName_) {
5651-
procInterface = interfaceName_->symbol;
5651+
procInterface = interfaceName_->symbol->has<GenericDetails>()
5652+
? interfaceName_->symbol->get<GenericDetails>().specific()
5653+
: interfaceName_->symbol;
56525654
}
56535655
auto attrs{HandleSaveName(name.source, GetAttrs())};
56545656
DerivedTypeDetails *dtDetails{nullptr};

0 commit comments

Comments
 (0)