aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access13.C
blob: c12dd81dc87fb3da5b7162c0ad815d046c6a43c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PRMS Id: 4955
// Build don't link:

struct A {
 protected:
  int i;
  void f ();
};

struct B: public A {
  void g () {
    this->A::i = 1;		// gets bogus error - access control failure
    this->A::f();		// gets bogus error - access control failure
  }
};