FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg5.C
blobfacd0b67158458dbbfc713118ebbdd33b5b2c9d2
1 // Build don't link:
3 template <int dim>
4 class Point {
5   public:
6     Point (Point<dim> &);
7     Point<dim> & operator = (Point<dim> &);
8 };
12 template <int dim>
13 class bar{
14   public:
15     void foo (Point<dim> p = Point<dim>());
20 template <>
21 void bar<2>::foo (Point<2> p) {
22   const int dim = 2;
23   Point<dim> q = p;