[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / access22.C
blob9ee28a2a08d3241a6950e5e42d0af9bd4527558c
1 template <int I> struct B { };
3 template <class T>
4 B<T::I> f();
6 class A
8   static const int I = 42;
9   template <class T> friend B<T::I> f();
12 int main()
14   f<A>();