PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef39.C
blob71d8bdb1bef7f0ea2839ad6f3383f84ceb676a5d
1 // PR c++/50852
3 template<int d> class A;
4 template<class T> struct B {typedef int K;typedef int L;};
5 template<class U,class V> struct C
7     typedef typename U::L X;
8     typedef A<X::a-1> W;        // { dg-error "not a member" }
9 };
10 template<class U,int d> struct D
12     typedef typename U::L X;
13     typedef A<X::a-1> W;        // the error should really be on this line
15 template class D<B<A<1> >,3>;