https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90115
Bug ID: 90115 Summary: OpenACC: predetermined private levels for variables declared in blocks 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 a C block that is executed in 'vector-partitioned' mode are private to the thread associated with each vector lane. Variables declared in a C block that is executed in 'worker-partitioned' 'vector-single' mode are private to the worker and shared across the threads associated with the vector lanes of that worker. Variables declared in a C block that is executed in 'worker-single' mode are private to the gang and shared across the threads associated with the workers and vector lanes of that gang".