FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / ambig1.C
blob9886991e29bc1b19ffd07455edac188ffc52183d
1 //Build don't link:
2 //Based on a report by Bill Currie <bcurrie@tssc.co.nz>
3 struct foo {
4   protected:
5     int x;        // ERROR - candidate
6 };
8 struct bar {
9   public:
10     int x();      // ERROR - candidate
13 struct foobar: public foo, public bar {
14   foobar();
17 int func(int);
19 foobar::foobar()
21     func(x);       // ERROR - ambiguous member access