Hi Tobias, > I think that's the wrong solution to the problem: I think it makes more > sense to fix the handling for OMP workshare to handle BLOCK correctly > rather than to move the variable to the function scope and then to > fiddle with the private attribute.
What is the reason for that? I don't think there is a way to "correctly" handle BLOCK, since none has been specified by the OMP standard yet. I also tried the solution that Jakub proposed, but could not get it to work. Since my time next week is limited, I am unassigning myself from the PR for the moment. If anybody has time to work on any of the alternatives, please feel free. Thomas