]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/86734 use addressof in reverse_iterator::operator->
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Aug 2018 15:40:21 +0000 (16:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 8 Aug 2018 15:40:21 +0000 (16:40 +0100)
commit2751aed2cf42d3a9922ca76029b653306a3b30d2
tree7db38ff43ef4ce471a4f16ea7f10a6644ed386c7
parenta9b5db38b5b4a2f718c21d4573fefa2c0b4e4eb4
PR libstdc++/86734 use addressof in reverse_iterator::operator->

Backport from mainline
2018-07-30  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/86734
* include/bits/stl_iterator.h (reverse_iterator::operator->): Use
addressof (LWG 2188).
* testsuite/24_iterators/reverse_iterator/dr2188.cc: New test.

From-SVN: r263416
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr2188.cc [new file with mode: 0644]