repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
net36.C
blob
98b38eedb48bebe21b5286e68fd1d879e46552f6
1
// { dg-do assemble }
2
3
class X;
4
5
class A {
6
public:
7
void handlerFn(X*);
8
};
9
10
typedef void (A::*handler) (X*);
11
12
class B {
13
public:
14
void setHandler(handler); // { dg-error "candidate" }
15
};
16
17
void f(B* b) {
18
b->setHandler(A::handlerFn); // { dg-error "" }
19
}