https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90634
--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Tue May 28 16:08:51 2019 New Revision: 271712 URL: https://gcc.gnu.org/viewcvs?rev=271712&root=gcc&view=rev Log: Fix check for root-directory path and add tests PR libstdc++/90634 * src/filesystem/path.cc (path::_M_split_cmpts()): Fix check for "/". * testsuite/27_io/filesystem/path/construct/90634.cc: New test. * testsuite/experimental/filesystem/path/construct/90634.cc: New test. Added: branches/gcc-8-branch/libstdc++-v3/testsuite/27_io/filesystem/path/construct/90634.cc branches/gcc-8-branch/libstdc++-v3/testsuite/experimental/filesystem/path/construct/90634.cc Modified: branches/gcc-8-branch/libstdc++-v3/ChangeLog branches/gcc-8-branch/libstdc++-v3/src/filesystem/path.cc