https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004
--- Comment #6 from Eric Fiselier <eric at efcs dot ca> --- (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.