PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend24.C
blob5db4d31e721462b4fc6efa7efa7fabc654b1c99d
1 // { dg-do compile }
3 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5 // PR c++/495: Fail to locate primary class template that is
6 // injected by friend declaration.
8 template <int N> struct X
10   template <int dim> friend struct Y;
13 X<2> x;
15 template <int dim> struct Y
17   void f (Y);
18   void g (Y);
21 template <int dim> void Y<dim>::f (Y)
25 template <int dim> void Y<dim>::g (Y<dim>)