aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C
blob: 52332c63c615babeae71c6b738f02e96deab217a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Build don't link:

template<class P> struct B
{
  template<class T> void f(T& t) { t = T(); }
};

enum ptype { t1, t2};

struct D : public B<ptype>
{
  void g(double& d) { f(d); }
};


D d;