Debian Codegraph @

gcc/testsuite/g++.dg/template/instantiate6.C

raw
1 // { dg-do compile }
2
3 // Origin: [email protected]
4 // Wolfgang Bangerth <[email protected]>
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