https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113250
Bug ID: 113250 Summary: std::filesystem::equivalent("", "/") should throw Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: davidepesa at gmail dot com Target Milestone: --- According to https://eel.is/c++draft/fs.op.equivalent > !exists(p1) || !exists(p2) is an error. However, equivalent("", "/") returns false instead of throwing filesystem_error. This is possibly due to a typo here: https://github.com/gcc-mirror/gcc/blob/5a0b3355d956f5d36f9b562e027b890cc5f61d88/libstdc%2B%2B-v3/src/c%2B%2B17/fs_ops.cc#L900 (&& instead of ||)