From: Martin v. Löwis Date: Sun, 20 Sep 1998 12:13:07 +0000 (+0000) Subject: New test case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3add584574c8fa2716b86cec451b47987a900caf;p=gcc.git New test case From-SVN: r22501 --- 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 00000000000..3ee730ddc26 --- /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 +}