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++.ns
/
lookup5.C
blob
c83b50a9779b1a7a058e276c2e72fd7dcb75b593
1
// Build don't link:
2
namespace A{
3
void f();
4
}
5
6
namespace B{
7
using namespace A;
8
void f(int); // ERROR - referenced below
9
}
10
11
using namespace B;
12
13
void g()
14
{
15
::f(); // ERROR - A::f is not found
16
}
17
18
using namespace A;
19
20
void g1()
21
{
22
::f(); // ok, it is found now
23
}