This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/71005] recursive_directory_iterator::operator++(int) incorrectly implemented


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed May 25 15:42:51 2016
New Revision: 236713

URL: https://gcc.gnu.org/viewcvs?rev=236713&root=gcc&view=rev
Log:
libstdc++/71005 fix post-increment for filesystem iterators

Backport from mainline
2016-05-10  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/71005
        * include/experimental/bits/fs_dir.h (__directory_iterator_proxy):
        New type.
        (directory_iterator::operator++(int)): Return proxy.
        (recursive_directory_iterator::operator++(int)): Likewise.
        * testsuite/experimental/filesystem/iterators/directory_iterator.cc:
        Test post-increment.
        * testsuite/experimental/filesystem/iterators/
        recursive_directory_iterator.cc: Likewise.

Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/experimental/fs_dir.h
   
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc
   
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]