Hi! On 2023-10-25T10:57:06+0200, I wrote: > With minor textual conflicts resolved, I've pushed this to master branch > in commit 3a3596389c2e539cb8fd5dc5784a4e2afe193a2a > "OpenACC 2.7: Implement self clause for compute constructs", see > attached. > > > I'll then apply/submit a number of follow-on commits. > --- /dev/null > +++ b/gcc/testsuite/c-c++-common/goacc/self-clause-1.c > @@ -0,0 +1,22 @@ > +/* { dg-skip-if "not yet" { c++ } } */ Pushed to master branch commit 76cc5463227308c4dd2b70ccfe04d2b5361db0fe "Enable 'c-c++-common/goacc/{if,self}-clause-1.c' for C++", see attached. > + > +void > +f (int b) > +{ > + struct { int i; } *p; > + > +#pragma acc parallel self self(b) /* { dg-error "too many 'self' clauses" } */ > + ; > +#pragma acc parallel self(*p) /* { dg-error "used struct type value where scalar is required" } */ > + ; > + > +#pragma acc kernels self self(b) /* { dg-error "too many 'self' clauses" } */ > + ; > +#pragma acc kernels self(*p) /* { dg-error "used struct type value where scalar is required" } */ > + ; > + > +#pragma acc serial self self(b) /* { dg-error "too many 'self' clauses" } */ > + ; > +#pragma acc serial self(*p) /* { dg-error "used struct type value where scalar is required" } */ > + ; > +} Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955