[Bug libstdc++/93201] std::filesystem::remove_all fails to remove large files

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 8 22:00:00 GMT 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |81091

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The poor error reporting is fixed on all branches. The original testcase now
reports the correct error:

terminate called after throwing an instance of
'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: cannot remove all: Value too large for defined
data type [dir]
Aborted (core dumped)

That will be fixed by the backport of PR 81091.


Referenced Bugs:

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


More information about the Gcc-bugs mailing list