// { dg-do run } // Copyright (C) 2001, 2002 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 26 Feb 2001 // Bug 1981. using declarations in namespace scope were not remembered. namespace A { void swap () {} } template void f() { using A::swap; } template void f (); int foo (int) { return 0;} namespace B { int foo (int) { return 1;} template int baz () { using ::foo; return foo (1); } template int baz (); } int main () { return B::baz (); }