1// { dg-do assemble  }
2
3template <bool B>
4struct S
5{
6  static void g();
7};
8
9template <bool B>
10void g();
11
12template<unsigned Length>
13void f()
14{
15  const bool b = true;
16  g<b>();
17  const bool b1 = (Length == 2);
18  S<b1>::g();
19}
20
21void h()
22{
23  f<3>();
24}
25