[Bug libstdc++/86734] [DR 2188] reverse_iterator::operator-> does not support overloaded operator&

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 7 22:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86734

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Aug  7 22:50:11 2018
New Revision: 263374

URL: https://gcc.gnu.org/viewcvs?rev=263374&root=gcc&view=rev
Log:
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.

Added:
   
branches/gcc-7-branch/libstdc++-v3/testsuite/24_iterators/reverse_iterator/dr2188.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/bits/stl_iterator.h


More information about the Gcc-bugs mailing list