// PR debug/96354 // { dg-do compile } // { dg-options "-O2 -g -fopenmp-simd" } template struct A { typedef double T[N]; }; template struct B { typename A::T b; double *baz () { return b; } }; template struct C { B d; C (); }; template C::C () { double c = *d.baz (); } template void operator- (C, const C &); template struct D {}; template C foo (D, C) { C t; return t; } int e; struct E { D<3> d; void bar (); }; void E::bar () { #pragma omp simd for (int i = 0; i < e; i++) { C<3> f, g; g - foo (d, f); } }