https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104454

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This fixes the FAIL for 27_io/filesystem/operations/weakly_canonical.cc

--- a/libstdc++-v3/src/c++17/fs_ops.cc
+++ b/libstdc++-v3/src/c++17/fs_ops.cc
@@ -162,7 +162,7 @@ fs::path
 fs::canonical(const path& p, error_code& ec)
 {
   path result;
-#ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS
+#if defined _GLIBCXX_FILESYSTEM_IS_WINDOWS || defined _AIX
   const path pa = absolute(p.lexically_normal(), ec);
 #else
   const path pa = absolute(p, ec);


but not for 27_io/filesystem/operations/canonical.cc so we might still need to
strip the trailing slash from the result of canonical.

Reply via email to