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
2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
instantiate6.C
1
// { dg-do compile }
2
3
// Origin: gianni@mariani.ws
4
// Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5
6
// PR c++/13289: ICE recursively instantiate static member data.
7
8
template <int N> struct S {
9
static const int C;
10
};
11
12
template <int N>
13
const int S<N>::C = S<(N+1)%2>::C;
14
15
template struct S<1>;
16