summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C
blob: 26bd4bc1867f7602108bb596c9dbbe1a4299ae05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }

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;