[Bug c++/92672] OpenMP shared clause not respected without pointer to the variable

2020-01-30 Thread me at cimba dot li
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

[Bug c++/92672] New: OpenMP shared clause not respected without pointer to the variable

2019-11-26 Thread me at cimba dot li
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