Skip to content

Commit 3937071

Browse files
Fix build issue
1 parent 405e09f commit 3937071

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
@@ -1496,7 +1496,7 @@ class OmpVisitor : public virtual DeclarationVisitor {
14961496

14971497
bool Pre(const parser::OmpDeclareVariantDirective &x) {
14981498
AddOmpSourceRange(x.source);
1499-
auto FindSymbolOrError = [](parser::Name &procName) {
1499+
auto FindSymbolOrError = [&](const parser::Name &procName) {
15001500
auto *symbol{FindSymbol(NonDerivedTypeScope(), procName)};
15011501
if (!symbol) {
15021502
context().Say(procName.source,

0 commit comments

Comments
 (0)