Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ns/lookup5.C

raw
1 // { dg-do assemble }
2 namespace A{
3 void f();
4 }
5
6 namespace B{
7 using namespace A;
8 void f(int); /* { dg-message "note: declared here" } */
9 }
10
11 using namespace B;
12
13 void g()
14 {
15 ::f(); // { dg-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 }