2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend7.C
bloba954f8990c5d3ff0a5b31ff03115af2cd7a981b3
1 // { dg-do compile }
3 template <typename V>
4 struct b
6   template <typename T>
7   class a
8   {
9     template <typename>
10     friend class a;
12     T t_;
14    public:
15     a() {}
16     a(a<T *> const &);
17   };
20 template <typename V>
21 template <typename T>
22 b<V>::a<T>::a(a<T *> const &rhs): t_(*rhs.t_)
26 int
27 f ()
29   b<void *>::a<char *> q;
30   b<void *>::a<char> w(q);
32   return 0;