repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.martin
/
ambig1.C
blob
1ccc217a4772d6a583e8c623eef1579aa9f69d2f
1
// { dg-do assemble }
2
//Based on a report by Bill Currie <bcurrie@tssc.co.nz>
3
struct foo {
4
protected:
5
int x; // { dg-error "" } candidate
6
};
7
8
struct bar {
9
public:
10
int x(); // { dg-error "" } candidate
11
};
12
13
struct foobar: public foo, public bar {
14
foobar();
15
};
16
17
int func(int);
18
19
foobar::foobar()
20
{
21
func(x); // { dg-error "" } ambiguous member access
22
}