1 // Contributed by Dodji Seketeli <dodji@redhat.com>
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 
21