aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/using12.C
blob: edc863b08bf5f564085f2816f40695032286b59b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Build don't link:
// Origin: Brendan Kehoe <brendan@cygnus.com>

namespace foo
{
  void x (bool);     // ERROR - candidates
  void x (char);     // ERROR - candidates
  void x (int);      // ERROR - candidates
  void x (double);   // ERROR - candidates
}

namespace baz { void x (int); }  // ERROR - candidates

void fn (int i)
{
  using foo::x;
  using baz::x;
  x(i); 	 // ERROR - ambiguous
}