summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/access11.C
blob: 31a89b2ede8b3b271c4e9845980d95c506c909db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PRMS Id: 4900
// Bug: g++ doesn't apply access control uniformly to type conversion operators
// Build don't link:

struct A {
protected:
  operator int * () const;
};

struct B : public A {
  int * foo () { return A::operator int *(); }
};