diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3b17f21773..d877a3de063 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-12 Alexandre Oliva + * 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 diff --git a/gcc/testsuite/g++.old-deja/g++.other/pmf2.C b/gcc/testsuite/g++.old-deja/g++.other/pmf2.C new file mode 100644 index 00000000000..72de6b638bb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/pmf2.C @@ -0,0 +1,18 @@ +// Build don't link: + +// submitted by David C Binderman + +struct S +{ + void f(); +}; + +void (S ::* pmf) (); + +S * pf; + +void +f() +{ + pmf = & pf->f; // ERROR - not a valid pmf expression - XFAIL *-*-* +}