1 // PR c++/49176
2 // { dg-do compile { target c++11 } }
3 
4 struct A { static int a(); };
5 
6 template<int>
7 struct B { static int const b; };
8 
f()9 int f() { return B<0>::b; }
10 
11 template<int I>
12 int const B<I>::b=A::a();
13