From dfdf2839b5353bf9e21e652ea5f257f4a9839600 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sat, 21 Oct 2017 02:16:43 +0100 Subject: [PATCH] Fix invalid path::iterator test * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not increment past-the-end iterators. From-SVN: r253967 --- libstdc++-v3/ChangeLog | 5 +++++ .../testsuite/experimental/filesystem/path/itr/traversal.cc | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7ec3f90befd..18a8feb74c3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-10-21 Jonathan Wakely + + * testsuite/experimental/filesystem/path/itr/traversal.cc: Do not + increment past-the-end iterators. + 2017-10-20 Jonathan Wakely * include/std/chrono (__cpp_lib_chrono): Update macro value to diff --git a/libstdc++-v3/testsuite/experimental/filesystem/path/itr/traversal.cc b/libstdc++-v3/testsuite/experimental/filesystem/path/itr/traversal.cc index dbb4d46796d..41a292af4db 100644 --- a/libstdc++-v3/testsuite/experimental/filesystem/path/itr/traversal.cc +++ b/libstdc++-v3/testsuite/experimental/filesystem/path/itr/traversal.cc @@ -90,10 +90,9 @@ test03() ++iter; iter2++; VERIFY( iter2 == iter ); - auto iter3 = iter; - --iter3; + --iter; iter2--; - VERIFY( iter2 == iter3 ); + VERIFY( iter2 == iter ); } } -- 2.30.2