diff options
author | Martin v. Löwis <loewis@gcc.gnu.org> | 1998-09-20 12:13:07 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 1998-09-20 12:13:07 +0000 |
commit | 3add584574c8fa2716b86cec451b47987a900caf (patch) | |
tree | 25e5552e47188423fc298c7aecd7e6a49251c602 | |
parent | 27c7a08d680d5054ec3be57a3baedae1cc2f9c64 (diff) | |
download | gcc-3add584574c8fa2716b86cec451b47987a900caf.zip gcc-3add584574c8fa2716b86cec451b47987a900caf.tar.gz gcc-3add584574c8fa2716b86cec451b47987a900caf.tar.bz2 |
New test case
From-SVN: r22501
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.martin/ambig1.C | 22 |
1 files changed, 22 insertions, 0 deletions
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 <bcurrie@tssc.co.nz> +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 +} |