https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83279
--- Comment #2 from T B <ta12ba34 at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > (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. Then it is really strange. A repetition of my test results in exactly the same however - with g++ 5.4 it works still fine. Perhaps it is the fact that I use a prebuild GCC 5.4 and a selfcompiled GCC 7.2. Could someone else please try it out? Otherwise I will try to rebuild my GCC 7.2. It seems that the preprocessed file was too large. But I can not find anything important inside. If you think there could be anything inside, I will hand them in later.