Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr77578.C

raw
1 // PR c++/77578
2 // { dg-do compile }
3
4 template <typename T>
5 class A
6 {
7 };
8
9 template <typename T>
10 struct B
11 {
12 };
13
14 template <typename T>
15 struct B <A <T> >
16 {
17 typedef A <T> C;
18 typedef typename C::D D;
19
20 template <typename U>
21 static void
22 foo (const D x, const D y)
23 {
24 U u;
25 {
26 #pragma omp parallel for
27 for (u.bar().y() = x.y(); u.bar().y() <= y.y(); u.bar().y()++) // { dg-error "expected" }
28 ;
29 }
30 }
31 };