Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / goacc / pr118590.C
blob846fe6702f4652ea147d7c32f9bac55818c48ff4
1 // PR c++/118590
2 // { dg-do compile }
4 template <typename T>
5 struct A
7   int z;
8 };
10 template <typename T, typename U>
11 struct B
13   char *w;
14   A<T> y;
17 template <typename T, typename U>
18 void
19 foo  (B<T, U> &x)
21   A<T> c = x.y;
22   #pragma acc enter data copyin(x.w[0 : c.z])
25 void
26 bar (B<int, int> &x)
28   foo (x);