From 3add584574c8fa2716b86cec451b47987a900caf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 20 Sep 1998 12:13:07 +0000 Subject: [PATCH] New test case From-SVN: r22501 --- gcc/testsuite/g++.old-deja/g++.martin/ambig1.C | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.martin/ambig1.C diff --git a/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C b/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C new file mode 100644 index 0000000..3ee730d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C @@ -0,0 +1,22 @@ +//Build don't link: +//Based on a report by Bill Currie +struct foo { + protected: + int x; +}; + +struct bar { + public: + int x(); +}; + +struct foobar: public foo, public bar { + foobar(); +}; + +int func(int); + +foobar::foobar() +{ + func(x); // ERROR - ambiguous member access +} -- 2.7.4