aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload30.C
blob: 24485c5851dcd37ba654940d2cd5eb31ad3994a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PRMS Id: 6412
// Build don't link:

class Foo;

template <class F>
class Temp
{
  F  func_;
public:
  Temp (F f) : func_(f) {}
};

template <class T>
T* func1 (T* t) { return t; }

Temp<Foo*(*)(Foo*)> temp2(func1);