* g++.old-deja/g++.other/pmf2.C: New test. invalid
pointer-to-member expression
From-SVN: r22994
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * g++.old-deja/g++.other/pmf2.C: New test. invalid
+ pointer-to-member expression
+
* g++.old-deja/g++.other/friend5.C: New test. bogus friend
declaration causes ICE
--- /dev/null
+// Build don't link:
+
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+struct S
+{
+ void f();
+};
+
+void (S ::* pmf) ();
+
+S * pf;
+
+void
+f()
+{
+ pmf = & pf->f; // ERROR - not a valid pmf expression - XFAIL *-*-*
+}