☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access11.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/access11.C
code
plain
raw
1
// { dg-do assemble }
2
// PRMS Id: 4900
3
// Bug: g++ doesn't apply access control uniformly to type conversion operators
4
5
struct A {
6
protected:
7
operator int * () const;
8
};
9
10
struct B : public A {
11
int * foo () { return A::operator int *(); }
12
};