repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
using18.C
blob
d64fbc6e91697d8beeb2f96ef7ad14b4dabc1ac6
1
// Copyright (C) 2007 Free Software Foundation
2
// Contributed by Ollie Wild <aaw@google.com>
3
// { dg-do compile }
4
5
namespace N1 {
6
void f ();
7
struct f; // { dg-message "" "candidate" }
8
}
9
10
namespace N2 {
11
void f (int);
12
struct f; // { dg-message "" "candidate" }
13
}
14
15
namespace M {
16
using namespace N1;
17
using namespace N2;
18
}
19
20
using M::f; // { dg-error "ambiguous" }