[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend55.C
blob4abe6ce6a2386188fa44eb68b1364720a4cf96b6
1 // PR c++/59956
3 template <int I> struct A;
4 template <int I> class B {
5   int i;
6   template <int A_S> friend void A<A_S>::impl();
7 };
9 B<0> b1;
10 template<int I>struct A { void impl(); };
11 B<1> b2;
13 template<int I> void A<I>::impl() { ++b1.i; ++b2.i; }
15 int main()
17   A<0>().impl();