PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / using27.C
blobf1835e17161c8bd7dc739f51f33c9567b8684d2f
1 // PR c++/37140
3 struct X
5   typedef int nested_type;
6 };
8 template <class T>
9 struct A
11   typedef X type;
14 template <class T>
15 struct B : A<T>
17   using typename A<T>::type;
18   typename type::nested_type x;
21 template <class T> 
22 struct C : B<T>
24   using typename B<T>::type;
25   typename type::nested_type y;
28 struct D : C<int>
30   using C<int>::type;
31   type::nested_type z;