[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / access21.C
blob8414c4371f4f9b97ef91c3890f47c9695e6997ba
1 // PR c++/48884
3 class X
5   static const int I = 42;
6   friend struct Y;
7 };
9 template <int I> struct A { };
11 struct Y
13   template <typename T>
14   static A<T::I> f(T t)
15   {
16     return A<T::I>();
17   }
20 int main()
22   Y::f(X());