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
* c-common.c (catenate_strings): New.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
access10.C
blob
a8a2bb9fd42488a879abbae8ac32b52866cd3efb
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;