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;
15 template <int dim> struct Y
21 template <int dim> void Y<dim>::f (Y)
25 template <int dim> void Y<dim>::g (Y<dim>)