Skip to content

Commit d6fc767

Browse files
Fix build issue
1 parent 1a38998 commit d6fc767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/resolve-names.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ class OmpVisitor : public virtual DeclarationVisitor {
15131513

15141514
bool Pre(const parser::OmpDeclareVariantDirective &x) {
15151515
AddOmpSourceRange(x.source);
1516-
auto FindSymbolOrError = [](parser::Name &procName) {
1516+
auto FindSymbolOrError = [&](const parser::Name &procName) {
15171517
auto *symbol{FindSymbol(NonDerivedTypeScope(), procName)};
15181518
if (!symbol) {
15191519
context().Say(procName.source,

0 commit comments

Comments
 (0)