-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tree.c (ovl_copy): Adjust assert, copy OVL_LOOKUP. (ovl_used): New. (lookup_keep): Call it. PR c++/80891 (#2) * g++.dg/lookup/pr80891-2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248570 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
nathan
committed
May 29, 2017
1 parent
2377d25
commit 5fde115
Showing
4 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// PR c++/80891 part 1 | ||
// instantiation-time ADL for swap needs to copy a previous lookup | ||
// node, but gets confused. | ||
|
||
void swap(); | ||
|
||
namespace boost { | ||
void swap(); | ||
} | ||
|
||
using namespace boost; | ||
|
||
template <typename T> | ||
void reversible_container_test () | ||
{ | ||
using namespace boost; | ||
T a; | ||
swap (a); | ||
} | ||
|
||
namespace boost { | ||
struct A {}; | ||
template <typename T> void swap(T); | ||
} | ||
|
||
void test_ptr_vector() | ||
{ | ||
reversible_container_test<A>; | ||
} |