8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/pmf2.C

19 lines
198 B
C++
Raw Normal View History

// Build don't link:
// submitted by David C Binderman <dcb@pncl.co.uk>
struct S
{
void f();
};
void (S ::* pmf) ();
S * pf;
void
f()
{
1998-10-19 16:13:15 -04:00
pmf = & pf->f; // ERROR - not a valid pmf expression
}