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

me at cimba dot li gcc-bugzilla@gcc.gnu.org
Thu Jan 30 12:52:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92672

--- Comment #3 from Cimbali <me at cimba dot li> ---
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 tricks in the discussion that
originated this bug:
https://stackoverflow.com/a/59017666/1387346


More information about the Gcc-bugs mailing list