https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95749
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:caac3ee7008286404323c4aa93ee0e1c4753c4c2 commit r9-8800-gcaac3ee7008286404323c4aa93ee0e1c4753c4c2 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Aug 10 11:10:26 2020 +0100 libstdc++: Use _wstat64 for Windows [PR 95749] In order to handle large files on Windows we need to use stat API with 64-bit st_size member. libstdc++-v3/ChangeLog: PR libstdc++/95749 * src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS] (stat_type): Change to __stat64. (stat): Use _wstat64. (cherry picked from commit 9939be5758b52ed2fe1a7e56b94ce6d0f4d81580)