1 // PR c++/15877
2 
3 template <int n> struct T1 { enum { N = 3 }; };
4 template <int n> struct T2 { enum { N = n, N1 = T1<N>::N }; };
5