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

class X;

class A {
public:
  void handlerFn(X*);
};

typedef void (A::*handler) (X*);

class B {
public:
  void setHandler(handler);
};

void f(B* b) {
  b->setHandler(A::handlerFn);	// ERROR - 
};