8sa1-gcc/gcc/testsuite/g++.old-deja/g++.martin/ambig1.C
Jason Merrill 4cfa922359 update
From-SVN: r25491
1999-02-27 19:22:44 -05:00

23 lines
358 B
C

//Build don't link:
//Based on a report by Bill Currie <bcurrie@tssc.co.nz>
struct foo {
protected:
int x; // ERROR - candidate
};
struct bar {
public:
int x(); // ERROR - candidate
};
struct foobar: public foo, public bar {
foobar();
};
int func(int);
foobar::foobar()
{
func(x); // ERROR - ambiguous member access
}