https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118158
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So it does this equivalent does: if (is_other(s1) && is_other(s2)) { ec = std::__unsupported(); return false; } Where is_other is defined as: [[nodiscard]] inline bool is_other(file_status __s) noexcept { return exists(__s) && !is_regular_file(__s) && !is_directory(__s) && !is_symlink(__s); }