repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
instantiate6.C
blob
d5d712ee09122b4ab6b5e9615a00eb1e9836eca3
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