PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / canon-type-11.C
blob0fe99511e4caad438e5cb16a541c58a0de601a5f
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // { dg-do compile }
4 template<class T>
5 struct C
7   void bar();
8 };
10 template<class T>
11 void
12 C<T>::bar()
17 template<class U,
18          template<class TT0_T0> class TT0 = C,
19          template<class TT1_T0> class TT1 = TT0>
20 struct S
22   C<U> s;
24   void foo(TT1<U>);
26   void bar()
27   {
28     foo(s);
29   }
32 template<class T,
33          template<class TT0_T0> class TT0,
34          template<class TT1_T0> class TT1>
35 void
36 S<T, TT0, TT1>::foo(TT1<T>)
38   C<T> c;