Closed glucu closed 4 months ago
Hello @glucu,
thanks for reporting this issue! After a couple of days and tries, I was not able to reproduce it. Are you running a self-build version?
Andreas
Hi @andreasfertig
I also tested further and was unable to reproduce the problem. Odd. This was run on cppinsights.io.
Issue: The generated code for a lambda function that captures a variable by value does not use the captured variable in the lambda body.
Example Code:
Generated Code
Expected Generated Code
Note The issue seems to be intermittent, and it may not reproduce consistently.