Skip to content

Commit b3144a7

Browse files
committed
Fix symbol not found in map bug.
1 parent f7c0ce4 commit b3144a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/ConvertExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6034,7 +6034,7 @@ class ArrayExprLowering {
60346034
if (auto load = explicitSpace->findBinding(&x))
60356035
return applyPathToArrayLoad(load);
60366036
if (pathIsEmpty())
6037-
return [=](IterSpace) { return asScalar(x); };
6037+
return [=, &x](IterSpace) { return asScalar(x); };
60386038
auto loc = getLoc();
60396039
return [=](IterSpace) {
60406040
fir::emitFatalError(loc, "QQ reached symbol with path");

0 commit comments

Comments
 (0)