Fix path::iterator post-increment and post-decrement
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 Oct 2017 13:57:06 +0000 (14:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 19 Oct 2017 13:57:06 +0000 (14:57 +0100)
commit551124d5613673c70b92aff884430476f04684e1
tree59e10dbab163fd24737f8e1ffec4bd54fefbbcc1
parent89b1e1613665783c12f707590d5a9fbc657cc954
Fix path::iterator post-increment and post-decrement

* include/experimental/bits/fs_path.h (path::iterator++(int))
(path::iterator--(int)): Fix for paths with only one component.
* testsuite/experimental/filesystem/path/itr/traversal.cc: Test
post-increment and post-decrement.

From-SVN: r253896
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/experimental/filesystem/path/itr/traversal.cc