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 g()13void g() 14 { 15 ::f(); // { dg-error "" } A::f is not found 16 } 17 18 using namespace A; 19 g1()20void g1() 21 { 22 ::f(); // ok, it is found now 23 } 24