[flang-commits] [flang] WIP: experiment with PR #127845 (PR #128025)

Joel E. Denny via flang-commits flang-commits at lists.llvm.org
Thu Feb 20 17:50:21 PST 2025


jdenny-ornl wrote:

The error is "undeclared identifier" for `breakFromLoop`.  I have pushed several small commits in this PR to try to determine what causes it.  I have so far seen it only in windows.

[This commit](https://github.com/llvm/llvm-project/pull/128025/commits/586147e8e228ca39ba5f8a81654bd72f0a374e0f) did not see the error, but [the very next commit](https://github.com/llvm/llvm-project/pull/128025/commits/630ca39aa62b56c1b3ac0593b2be78b2fcf7c664) did.  The latter commit just removes an earlier assignment for the `breakFromLoop` identifier.  As far as I know, that shouldn't have mattered.

The code is identical at the latter commit and at [an earlier commit](https://github.com/llvm/llvm-project/pull/128025/commits/bc707baf58efeab2df71426ec8eee9239ac5e624), and the compiler behavior is the same.  So, so far, I don't see evidence that the compiler behavior is non-deterministic.

I then pushed a commit to [explicitly list all captures](https://github.com/llvm/llvm-project/pull/128025/commits/5c9fda145065ac1eb42daac37dbd2bca9a26f080), including `breakFromLoop`, for the enclosing lambda, and that seemed to work around the error.  But that would be a burden to maintain.


https://github.com/llvm/llvm-project/pull/128025


More information about the flang-commits mailing list