https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70388
Bug ID: 70388 Summary: [openacc] host_data use_device triggers error mentioning use_device_ptr Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider test.c: ... void foo (void) { int i = 0; #pragma acc host_data use_device(i) { } } ... Compiling for openacc gives an error message that mentions the use_device_ptr: ... $ gcc test.c -fopenacc test.c: In function ‘foo’: test.c:9:33: error: ‘use_device_ptr’ variable is neither a pointer nor an array #pragma acc host_data use_device(i) ^ ... The fortran version version of this testcase (src/gcc/testsuite/gfortran.dg/goacc/host_data-tree.f95) compiles without errors.