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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access15.C
blob
d7a30f9ff71ce624f1578176e8784741c4844254
1
// { dg-do assemble }
2
// Bug: g++ complains about Z being a private base when trying to
3
// initialize B::foo.
4
5
struct Z {
6
Z();
7
Z(int);
8
};
9
10
struct A : private Z { };
11
struct B : public A
12
{
13
::Z foo;
14
B();
15
B(const B&);
16
};
17
18
B::B() : foo(1) { } // { dg-bogus "" }