[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr77578.C
blobd92fddf970be82026d3264572619eedd1137d9ef
1 // PR c++/77578
2 // { dg-do compile }
4 template <typename T>
5 class A 
7 };
9 template <typename T>
10 struct B
14 template <typename T>
15 struct B <A <T> >
17   typedef A <T> C;
18   typedef typename C::D D;
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   }