PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef8.C
blobb3178842172408068c82161b09f71691b3f8e7c6
1 // PR c++/34206
2 // { dg-additional-options "-Wno-return-type" }
4 template<class _T1, class _T2> struct pair { };
5 template <class T0, class T1> struct tuple {
6   template <class U1, class U2>
7   tuple& operator=(const pair<U1, U2>& k) { }
8 };
9 template<class T1, class T2> inline tuple<T1&, T2&> tie(T1& t1, T2& t2) { }
11 template <class T> struct A
12 {   
13   typedef T type;
14   pair<type, type> f();
17 void g(A<int> a)
19   typedef A<int>::type type;
20   type begin1, end1;
21   tie(begin1, end1) = a.f();