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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
using1.C
blob
d734576ac8c3abed2490e3d759c252bb23455cbb
1
// { dg-do assemble }
2
class D2;
3
4
class B {
5
private:
6
int a; // { dg-error "" } B::a is private
7
protected:
8
int b;
9
10
friend class D2;
11
};
12
13
class D : public B { // { dg-error "" } within this context
14
public:
15
using B::a;
16
using B::b;
17
};
18
19
class D2 : public B { // { dg-error "" } conflicting access specifications
20
public:
21
using B::a;
22
using B::b;
23
24
private:
25
using B::b;
26
};
27