repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access22.C
blob
225ef6cad5c6262a252ed2d293d909fb6605fb68
1
// PRMS Id: 8518
2
// Bug: Call to foo is not checked for accessibility
3
4
class A
5
{
6
private:
7
static void foo() {} // ERROR -
8
public:
9
void goo() {}
10
};
11
12
struct B : public A
13
{
14
void func() { foo(); } // ERROR -
15
};
16
17
int main()
18
{
19
B b;
20
b.func();
21
}