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