blob: fef437161640eda30465e3db7f2bb5686c64fa04 [file] [log] [blame]
// { dg-do compile }
// { dg-options "-fopenmp" }
struct S { int a; void foo (S *); static S &bar (); };
void
S::foo (S *x)
{
S &b = bar ();
S c;
#pragma omp parallel private (b.a) // { dg-error "expected .\\). before .\\.. token" }
;
#pragma omp parallel private (c.a) // { dg-error "expected .\\). before .\\.. token" }
;
#pragma omp parallel private (x->a) // { dg-error "expected .\\). before .->. token" }
;
}