https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92672
--- Comment #3 from Cimbali ---
Would it be possible to deactivate that optimization when shared is not the
default mapping? In practice here explicitly setting `shared(i)` has no effect
at all.
Note that I already recommended against such trick
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: me at cimba dot li
Target Milestone: ---
It seems that if the address of a stack variable is never taken, it is treated
by child OpenMP tasks with firstprivate semantics, even though