New test case
From-SVN: r22501
This commit is contained in:
parent
27c7a08d68
commit
3add584574
22
gcc/testsuite/g++.old-deja/g++.martin/ambig1.C
Normal file
22
gcc/testsuite/g++.old-deja/g++.martin/ambig1.C
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user