aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-19 16:43:07 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-19 21:21:06 +0000
commit59aa9e577eb2b182374f5421828687c93b81ad3d (patch)
tree6f829494ae03acc7d5e78dc701019b082a86810a
parent58f2e59ad36ca05444cb0a57ad1f13cc58e52755 (diff)
downloadgcc-59aa9e577eb2b182374f5421828687c93b81ad3d.zip
gcc-59aa9e577eb2b182374f5421828687c93b81ad3d.tar.gz
gcc-59aa9e577eb2b182374f5421828687c93b81ad3d.tar.bz2
libstdc++: ranges::iter_move should perform ADL-only lookup (LWG 3247)
* include/bits/iterator_concepts.h (iter_move): Add declaration to prevent unqualified lookup finding a suitable declaration (LWG 3247).
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/include/bits/iterator_concepts.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 067cf83..689bee8 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
2020-02-19 Jonathan Wakely <jwakely@redhat.com>
+ * include/bits/iterator_concepts.h (iter_move): Add declaration to
+ prevent unqualified lookup finding a suitable declaration (LWG 3247).
+
* include/std/memory_resource (polymorphic_allocator::allocate)
(polymorphic_allocator::allocate_object): Change type of exception to
bad_array_new_length (LWG 3237).
diff --git a/libstdc++-v3/include/bits/iterator_concepts.h b/libstdc++-v3/include/bits/iterator_concepts.h
index 792b326..08e6222 100644
--- a/libstdc++-v3/include/bits/iterator_concepts.h
+++ b/libstdc++-v3/include/bits/iterator_concepts.h
@@ -79,6 +79,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
namespace __cust_imove
{
+ void iter_move();
+
template<typename _Tp>
concept __adl_imove
= (std::__detail::__class_or_enum<remove_reference_t<_Tp>>)