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++.law
/
nest3.C
blob
d390bc485825c29103c18a3e8d278305f2c42747
1
// Build don't link:
2
// GROUPS passed nest
3
#include <iostream>
4
5
struct inner {
6
static void f() { std::cout << "inner::f()\n";}
7
};
8
9
struct outer {
10
11
struct inner {
12
static void f() { std::cout << "outer::inner::f()\n";}
13
};
14
15
static void f() {
16
inner::f(); //call of outer::inner::f()
17
::inner::f(); //(try to) call inner::f() => parse error
18
}
19
};
20
21
int main() {
22
outer::f();
23
std::cout << std::endl;
24
return 0;
25
}