1 template<int n> 2 struct tento { 3 enum {value = 10*tento<n-1>::value}; 4 }; 5 6 struct tento<0> { // { dg-error "" } 7 enum {value=1}; 8 }; 9 10 int main() { 11 if (tento<4>::value != 10000) return -1; 12 } 13 14