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
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
strong-using-1.C
blob
a16fd6a50b973b81e50dbec175309326322e5a6b
1
// PR c++/13594 (secondary)
2
3
// { dg-do compile }
4
5
namespace fool {
6
namespace foo {
7
template <class T> void swap(T, T);
8
}
9
using namespace foo __attribute__((strong));
10
template <class T> void swap(T);
11
}
12
13
int main() {
14
// we used to fail to look up the associated namespace here
15
fool::swap(1, 1);
16
}