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

            Bug ID: 104454
           Summary: filesystem::canonical needs to strip trailing slash
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Keywords: testsuite-fail
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

27_io/filesystem/operations/canonical.cc FAILs on AIX because the result of
realpath("foo/.", 0) is "foo/" whereas on Linux it's "foo".

For consistency across platforms, filesystem::canonical should remove that
trailing slash.

27_io/filesystem/operations/weakly_canonical.cc also FAILs on AIX, probably for
the same reason.

Reply via email to