https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83279
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to T B from comment #0) > However, when I compiled it with GCC 5.4.0 (g++ -std=c++14 *.cpp *.h > -lstdc++fs) everything works fine and I can copy files with a size of over > 2.0GiB. That's strange, because the code for copy_file is identical.