[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #1 from Eric Fiselier --- Additionally this seems to be affecting the value returned from "recursion_pending()". The following code compiles and runs without asserting on my machine. #include #include using namespace std::experimental::filesystem; int main() { recursive_directory_iterator it; assert(it.recursion_pending() == false); assert(it.recursion_pending() == true); }
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2016-05-09 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Ever confirmed|0 |1
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #2 from Jonathan Wakely --- Author: redi Date: Mon May 9 10:09:37 2016 New Revision: 236023 URL: https://gcc.gnu.org/viewcvs?rev=236023&root=gcc&view=rev Log: libstdc++/71004 fix recursive_directory_iterator default constructor PR libstdc++/71004 * include/experimental/bits/fs_dir.h (recursive_directory_iterator): Initialize scalar member variables in default constructor. * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: Teste default construction. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/experimental/bits/fs_dir.h trunk/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |5.4 --- Comment #3 from Jonathan Wakely --- Only fixed on trunk so far.
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #4 from Jonathan Wakely --- (In reply to Eric Fiselier from comment #1) > recursive_directory_iterator it; > assert(it.recursion_pending() == false); > assert(it.recursion_pending() == true); N.B. This test is undefined, those observer functions have preconditions that they are not called on the end iterator.
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Mon May 9 11:50:01 2016 New Revision: 236028 URL: https://gcc.gnu.org/viewcvs?rev=236028&root=gcc&view=rev Log: libstdc++/71004 fix recent additions to testcase PR libstdc++/71004 * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: Fix test02 to not call member functions on invalid iterator, and use VERIFY not assert. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #6 from Eric Fiselier --- (In reply to Jonathan Wakely from comment #4) > (In reply to Eric Fiselier from comment #1) > > recursive_directory_iterator it; > > assert(it.recursion_pending() == false); > > assert(it.recursion_pending() == true); > > N.B. This test is undefined, those observer functions have preconditions > that they are not called on the end iterator. That's true, my mistake.
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #7 from Jonathan Wakely --- Author: redi Date: Wed May 25 15:42:45 2016 New Revision: 236712 URL: https://gcc.gnu.org/viewcvs?rev=236712&root=gcc&view=rev Log: libstdc++/71004 fix recursive_directory_iterator default constructor Backport from mainline 2016-05-09 Jonathan Wakely PR libstdc++/71004 * include/experimental/bits/fs_dir.h (recursive_directory_iterator): Initialize scalar member variables in default constructor. * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: Test default construction. 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/recursive_directory_iterator.cc
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 --- Comment #8 from Jonathan Wakely --- Author: redi Date: Wed May 25 15:44:27 2016 New Revision: 236721 URL: https://gcc.gnu.org/viewcvs?rev=236721&root=gcc&view=rev Log: libstdc++/71004 fix recursive_directory_iterator default constructor Backport from mainline 2016-05-09 Jonathan Wakely PR libstdc++/71004 * include/experimental/bits/fs_dir.h (recursive_directory_iterator): Initialize scalar member variables in default constructor. * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: Test default construction. Modified: branches/gcc-6-branch/libstdc++-v3/ChangeLog branches/gcc-6-branch/libstdc++-v3/include/experimental/bits/fs_dir.h branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED Known to fail||5.3.0, 6.1.0 --- Comment #9 from Jonathan Wakely --- Fixed in 5.4 and 6.2