summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/enum2.C
blob: 7a6c2072a757174f90709ff33e4d2be9003bd9e0 (plain)
1
2
3
4
// PR c++/15877

template <int n> struct T1 { enum { N = 3 }; };
template <int n> struct T2 { enum { N = n, N1 = T1<N>::N }; };