https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90114
Bug ID: 90114 Summary: Predetermined private levels for variables declared in OpenACC accelerator routines Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: openacc, wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org Target Milestone: --- OpenACC 2.7 (same in 2.6), in section 2.6.1. "Variables with Predetermined Data Attributes" mandates that "Variables declared in 'seq' routine are private to the thread that made the call. Variables declared in 'vector' routine are private to the worker that made the call and shared across the threads associated with the vector lanes of that worker. Variables declared in 'worker' or 'gang' routine are private to the gang that made the call and shared across the threads associated with the workers and vector lanes of that gang".