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

            Bug ID: 71038
           Summary: copy_file(...) returns false on successful copy.
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eric at efcs dot ca
  Target Milestone: ---

The title says it all. copy_file always seems to return false.

Example:

#include <experimental/filesystem>
#include <fstream>
#include <cassert>

using namespace std::experimental::filesystem;

int main() {
    std::ofstream out("/tmp/foo.txt");
    out << "hello world!\n";
    out.close();
    const path p = "/tmp/foo.txt";
    const path to = "/tmp/bar.txt";
    bool ret = copy_file(p, to);
    assert(ret == true);
}

Reply via email to