summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/using1.C
blob: d734576ac8c3abed2490e3d759c252bb23455cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do assemble  }
class D2;

class B {
private:
  int a; // { dg-error "" } B::a is private
protected:
  int b;

  friend class D2;
};

class D : public B { // { dg-error "" } within this context
public:
  using B::a;
  using B::b;
};

class D2 : public B { // { dg-error "" } conflicting access specifications
public:
  using B::a;
  using B::b;

private:
  using B::b; 
};