1 // { dg-do assemble  }
2 
3 // submitted by David C Binderman <dcb@pncl.co.uk>
4 
5 struct S
6 {
7 	void f();
8 };
9 
10 void (S ::* pmf) ();
11 
12 S * pf;
13 
14 void
f()15 f()
16 {
17 	pmf = & pf->f; // { dg-error "" } not a valid pmf expression
18 }
19