PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error6.C
blob7560dcfb51fa6eb38103e5ee321d1ee52c812283
1 template<int n>
2 struct tento {
3   enum {value = 10*tento<n-1>::value};
4 };
6 struct tento<0> { // { dg-error "" }
7    enum {value=1};
8 };
10 int main() {
11   if (tento<4>::value != 10000) return -1;