From 9896d23c0797e7373707b7f0cbf0ec85d2585d72 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 11 Oct 1998 19:29:17 +0000 Subject: [PATCH] pmf2.C: New test. * g++.old-deja/g++.other/pmf2.C: New test. invalid pointer-to-member expression From-SVN: r22994 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.old-deja/g++.other/pmf2.C | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/pmf2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d3b17f2..d877a3d 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 0000000..72de6b6 --- /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 *-*-* +} -- 2.7.4