// { dg-do compile } // { dg-options "-fopenmp" } #pragma omp declare target template struct S { T a; }; template struct U { T a; }; template struct V { T a; }; template struct W { T a; }; S d; U e[10]; extern V f[5]; extern W g[]; // { dg-error "'g' in declare target directive does not have mappable type" } #pragma omp end declare target