PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend53.C
blob6cbbb2b099371c1be08423da7d6fb774913e8e18
1 // PR c++/53403
3 template <typename T>
4 class Foo
6   typedef void type;
7   template <typename U> friend void f();
8 public:
9   Foo() {}
12 template class Foo<void>;
14 template <typename T>
15 void f()
17   typedef Foo<void>::type type;
20 int main()
22   f<void>();