8sa1-gcc/libstdc++-v3/include/std
Moritz Sichert 09f08fef71 libstdc++: Avoid accidental ADL when calling make_reverse_iterator
std::ranges::reverse_view uses make_reverse_iterator in its
implementation as described in [range.reverse.view]. This accidentally
allows ADL as an unqualified name is used in the call. According to
[contents], however, this should be treated as a qualified lookup into
the std namespace.

This leads to errors due to ambiguous name lookups when another
make_reverse_iterator function is found via ADL.

libstdc++-v3/Changelog:

	* include/std/ranges (reverse_view::begin, reverse_view::end):
	Qualify make_reverse_iterator calls to avoid ADL.
	* testsuite/std/ranges/adaptors/reverse.cc: Test that
	views::reverse works when make_reverse_iterator is defined
	in an associated namespace.
2021-03-23 16:34:42 +00:00
..
algorithm Update copyright years. 2021-01-04 10:26:59 +01:00
any Update copyright years. 2021-01-04 10:26:59 +01:00
array Update copyright years. 2021-01-04 10:26:59 +01:00
atomic Update copyright years. 2021-01-04 10:26:59 +01:00
barrier libstdc++: Make barrier::arrival_token a move-only class type 2021-03-11 17:52:57 +00:00
bit libstdc++: Improve std::rot[lr] [PR99396] 2021-03-06 11:11:30 +01:00
bitset Update copyright years. 2021-01-04 10:26:59 +01:00
charconv Update copyright years. 2021-01-04 10:26:59 +01:00
chrono libstdc++: Fix conversions from date types to integers [PR 99301] 2021-02-27 12:53:15 +00:00
codecvt Update copyright years. 2021-01-04 10:26:59 +01:00
complex Update copyright years. 2021-01-04 10:26:59 +01:00
concepts Update copyright years. 2021-01-04 10:26:59 +01:00
condition_variable Update copyright years. 2021-01-04 10:26:59 +01:00
coroutine libstdc++: Make coroutine_handle<_Promise>::from_address() noexcept [PR 99021] 2021-02-09 12:31:52 +00:00
deque Update copyright years. 2021-01-04 10:26:59 +01:00
execution Update copyright years. 2021-01-04 10:26:59 +01:00
filesystem Update copyright years. 2021-01-04 10:26:59 +01:00
forward_list Update copyright years. 2021-01-04 10:26:59 +01:00
fstream Update copyright years. 2021-01-04 10:26:59 +01:00
functional Update copyright years. 2021-01-04 10:26:59 +01:00
future Update copyright years. 2021-01-04 10:26:59 +01:00
iomanip Update copyright years. 2021-01-04 10:26:59 +01:00
ios Update copyright years. 2021-01-04 10:26:59 +01:00
iosfwd Update copyright years. 2021-01-04 10:26:59 +01:00
iostream Update copyright years. 2021-01-04 10:26:59 +01:00
istream Update copyright years. 2021-01-04 10:26:59 +01:00
iterator Update copyright years. 2021-01-04 10:26:59 +01:00
latch Update copyright years. 2021-01-04 10:26:59 +01:00
limits Update copyright years. 2021-01-04 10:26:59 +01:00
list Update copyright years. 2021-01-04 10:26:59 +01:00
locale Update copyright years. 2021-01-04 10:26:59 +01:00
map Update copyright years. 2021-01-04 10:26:59 +01:00
memory Update copyright years. 2021-01-04 10:26:59 +01:00
memory_resource Update copyright years. 2021-01-04 10:26:59 +01:00
mutex libstdc++: Revert to old std::call_once implementation [PR 99341] 2021-03-16 12:25:28 +00:00
numbers Update copyright years. 2021-01-04 10:26:59 +01:00
numeric Update copyright years. 2021-01-04 10:26:59 +01:00
optional Update copyright years. 2021-01-04 10:26:59 +01:00
ostream libstdc++: Fix errors when syncbuf is used without RTTI 2021-02-12 14:30:12 +00:00
queue Update copyright years. 2021-01-04 10:26:59 +01:00
random Update copyright years. 2021-01-04 10:26:59 +01:00
ranges libstdc++: Avoid accidental ADL when calling make_reverse_iterator 2021-03-23 16:34:42 +00:00
ratio Update copyright years. 2021-01-04 10:26:59 +01:00
regex Update copyright years. 2021-01-04 10:26:59 +01:00
scoped_allocator Update copyright years. 2021-01-04 10:26:59 +01:00
semaphore Update copyright years. 2021-01-04 10:26:59 +01:00
set Update copyright years. 2021-01-04 10:26:59 +01:00
shared_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
source_location Update copyright years. 2021-01-04 10:26:59 +01:00
span Update copyright years. 2021-01-04 10:26:59 +01:00
sstream Update copyright years. 2021-01-04 10:26:59 +01:00
stack Update copyright years. 2021-01-04 10:26:59 +01:00
stdexcept Update copyright years. 2021-01-04 10:26:59 +01:00
stop_token libstdc++: Use acq_rel memory ordering [PR 99537] 2021-03-11 17:52:56 +00:00
streambuf Update copyright years. 2021-01-04 10:26:59 +01:00
string Update copyright years. 2021-01-04 10:26:59 +01:00
string_view libstdc++: Implement string_view range constructor for C++20 2021-03-22 22:56:04 +00:00
syncstream Update copyright years. 2021-01-04 10:26:59 +01:00
system_error Update copyright years. 2021-01-04 10:26:59 +01:00
thread Update copyright years. 2021-01-04 10:26:59 +01:00
tuple Update copyright years. 2021-01-04 10:26:59 +01:00
type_traits libstdc++: Add std::is_scoped_enum for C++23 2021-03-19 20:10:56 +00:00
typeindex Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_map Update copyright years. 2021-01-04 10:26:59 +01:00
unordered_set Update copyright years. 2021-01-04 10:26:59 +01:00
utility libstdc++: Add std::to_underlying for C++23 2021-02-25 11:53:58 +00:00
valarray Update copyright years. 2021-01-04 10:26:59 +01:00
variant Update copyright years. 2021-01-04 10:26:59 +01:00
vector Update copyright years. 2021-01-04 10:26:59 +01:00
version libstdc++: Add std::is_scoped_enum for C++23 2021-03-19 20:10:56 +00:00