Debian Codegraph @

gcc/testsuite/g++.dg/lookup/pr80891-2.C

raw
1 // PR c++/80891 part 1
2 // instantiation-time ADL for swap needs to copy a previous lookup
3 // node, but gets confused.
4
5 void swap();
6
7 namespace boost {
8 void swap();
9 }
10
11 using namespace boost;
12
13 template <typename T>
14 void reversible_container_test ()
15 {
16 using namespace boost;
17 T a;
18 swap (a);
19 }
20
21 namespace boost {
22 struct A {};
23 template <typename T> void swap(T);
24 }
25
26 void test_ptr_vector()
27 {
28 reversible_container_test<A>;
29 }