Debian Codegraph @

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

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin PR c++/42251
3 // { dg-do compile }
4
5 struct foo
6 {
7 static const bool b = false;
8 };
9
10 template<bool x>
11 struct S1
12 {
13 };
14
15 template<bool x>
16 struct S2
17 : S1<foo::b>
18 {
19 };
20