https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609
--- Comment #1 from furkan <fruko_eto at hotmail dot com> --- Also worth to note that I've tested a similar program with Boost::Filesystem, QFile and Poco::File they all worked, so I don't think there is a system-related bug