// PR c++/118590 // { dg-do compile } template struct A { int z; }; template struct B { char *w; A y; }; template void foo (B &x) { A c = x.y; #pragma acc enter data copyin(x.w[0 : c.z]) } void bar (B &x) { foo (x); }