https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83279
--- Comment #12 from T B <ta12ba34 at gmail dot com> --- Thanks! However, if I understand your code right, you simply fixed the error code, right? So that it is still not possible to copy files larger than 2GiB. Wouldn't it be possible to create a loop in which in each run 2GiB will be copied until (count == n)? To be honest, streams are not my core competence. How is this issue solved in GCC 5.4?