OSDN Git Service

fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / using9.C
1 // Build don't link:
2 // 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 26 Feb 2001 <nathan@codesourcery.com>
5
6 // Bug 75. using declarations cannot introduce functions which ambiguate
7 // those in the current namespace, BUT here we're reaccessing the current
8 // namespace -- the function is not being 'introduced'.
9
10 extern int a();
11 struct x {};
12
13 using ::x;
14 using ::a;
15
16 extern "C" void foo ();
17
18 namespace {
19   extern "C" int foo ();
20   using ::foo; // ERROR - already in use
21 }