gcc/libstdc++-v3/testsuite/24_iterators
Jonathan Wakely a64ede727f PR libstdc++/86734 make reverse_iterator::operator-> more robust
Implement the proposed resolution from LWG 1052, which also resolves
DR 2118 by avoiding taking the address in the first place.

	PR libstdc++/86734
	* include/bits/stl_iterator.h (reverse_iterator::operator->): Call
	_S_to_pointer (LWG 1052, LWG 2118).
	(reverse_iterator::_S_to_pointer): Define overloaded helper functions.
	* testsuite/24_iterators/reverse_iterator/dr1052.cc: New test.
	* testsuite/24_iterators/reverse_iterator/dr2188.cc: New test.

From-SVN: r263074
2018-07-30 18:13:05 +01:00
..
back_insert_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
front_insert_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
headers/iterator Update copyright years. 2018-01-03 11:03:58 +01:00
insert_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
istream_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
istreambuf_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
move_iterator safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in... 2018-05-09 20:04:46 +00:00
normal_iterator safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in... 2018-05-09 20:04:46 +00:00
operations Update copyright years. 2018-01-03 11:03:58 +01:00
ostream_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
ostreambuf_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
random_access_iterator Update copyright years. 2018-01-03 11:03:58 +01:00
reverse_iterator PR libstdc++/86734 make reverse_iterator::operator-> more robust 2018-07-30 18:13:05 +01:00
container_access.cc Update copyright years. 2018-01-03 11:03:58 +01:00
range_access_cpp14.cc Update copyright years. 2018-01-03 11:03:58 +01:00
range_access_cpp17_neg.cc Update copyright years. 2018-01-03 11:03:58 +01:00
range_access_cpp17.cc Update copyright years. 2018-01-03 11:03:58 +01:00
range_access.cc Update copyright years. 2018-01-03 11:03:58 +01:00