[Bug fortran/92568] OpenMP 5 - implicit mapping of scalar with TARGET/ALLOCATABLE/POINTER attribute: shall be 'tofrom' mapped

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 30 10:40:00 GMT 2020


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't think the TARGET attribute ever matters for the mapping rules.
What matters is whether a variable is mentioned in !$omp declare target to/link
clauses (for OpenMP 5 there is also some implicit discovery for that).
And, while err has TARGET attribute, it isn't mentioned in !$omp declare
target, so it should be firstprivate.


More information about the Gcc-bugs mailing list