☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access10.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/access10.C
code
plain
raw
1
// { dg-do assemble }
2
// PRMS Id: 4839
3
// Bug: The initializer of a static member of a class has the same acess
4
// rights as a member function. g++ doesn't realize that.
5
6
class X
7
{
8
X (int);
9
static X foo;
10
public:
11
void dummy();
12
};
13
14
X X::foo = 9;