OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
using1.C
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