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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
static2.C
blob
099d9221089fd3564de79634b19ce54b3eb976d3
1
// { dg-do assemble }
2
// GROUPS passed static
3
class A
4
{
5
public:
6
void member(void)
7
{
8
}
9
10
static void staticMember()
11
{
12
member (); // illegal, no object for calling non-static method// { dg-error "" } .*
13
}
14
};
15
16
int main()
17
{
18
A::staticMember();
19
}