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 1a38998 commit d6fc767Copy full SHA for d6fc767
flang/lib/Semantics/resolve-names.cpp
@@ -1513,7 +1513,7 @@ class OmpVisitor : public virtual DeclarationVisitor {
1513
1514
bool Pre(const parser::OmpDeclareVariantDirective &x) {
1515
AddOmpSourceRange(x.source);
1516
- auto FindSymbolOrError = [](parser::Name &procName) {
+ auto FindSymbolOrError = [&](const parser::Name &procName) {
1517
auto *symbol{FindSymbol(NonDerivedTypeScope(), procName)};
1518
if (!symbol) {
1519
context().Say(procName.source,
0 commit comments