[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / const5.C
blob6de025816244a491dd282c540b3d2f635f8bebc6
1 // PR c++/49176
2 // { dg-do compile { target c++11 } }
4 struct A { static int a(); };
6 template<int>
7 struct B { static int const b; };
9 int f() { return B<0>::b; }
11 template<int I>
12 int const B<I>::b=A::a();