https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90634
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to baltic from comment #9) > (In reply to Jonathan Wakely from comment #8) > > > The libc++ implementation also fails this test: > > As i've shown before, neither of those are failures. By the current C++ > standard at least. It's true that the standard does not require path::iterator to be usable in generic algorithms that expect forward iterators or bidirectional iterators. I think the standard is wrong. > So, long story short: "I am not going to fix the x10 overhead, because I > believe the standard is wrong." Yes. The vector reallocations during path construction are gone for gcc 8.4 (and also in experimental::filesystem::path in all branches except gcc-7-branch).