blob: 403a9988dfd45214226c5ce7e7f634b82b79a011 [file] [log] [blame]
// 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 -
}