blob: 403a9988dfd45214226c5ce7e7f634b82b79a011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 981203 bkoz
// g++/13908
// Build don't link:
class chile
{
public:
protected:
private:
};
typedef void (chile::* pmf) ();
void* foo;
void bar (chile* pobj, pmf pmethod)
{
//-edg: expected member name
//-g++: taking address of bound pointer-to-member expression
foo = (void*) &(pobj->*pmethod); // ERROR -
}
|