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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |81091

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Since libstdc++ is not built with large file support, stat::off_t is only a
32-bit type, and the operation fails before any truncation to size_t would
happen:

terminate called after throwing an instance of
'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: cannot get file size: Value too large for defined
data type [/mnt/scratch/jwakely/tmp/large_file_for_testing_std_filesystem]
Aborted (core dumped)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81091
[Bug 81091] libstdc++ not built with large file support

Reply via email to