OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/cp
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error6.C
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