Index: include/experimental/filesystem =================================================================== --- include/experimental/filesystem +++ include/experimental/filesystem @@ -1140,7 +1140,9 @@ inline _LIBCPP_INLINE_VISIBILITY path operator/(const path& __lhs, const path& __rhs) { - return path(__lhs) /= __rhs; + path __result(__lhs); + __result /= __rhs; + return __result; } template