blob: 71d8bdb1bef7f0ea2839ad6f3383f84ceb676a5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/50852
template<int d> class A;
template<class T> struct B {typedef int K;typedef int L;};
template<class U,class V> struct C
{
typedef typename U::L X;
typedef A<X::a-1> W; // { dg-error "not a member" }
};
template<class U,int d> struct D
{
typedef typename U::L X;
typedef A<X::a-1> W; // the error should really be on this line
};
template class D<B<A<1> >,3>;
|