https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101510
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is the code from create_directories:
file_status st = symlink_status(p, ec);
if (is_directory(st))
return false;
else if (ec && !status_known(st))
return false;
else if (exists(st))
{
if (!ec)
ec = std::make_error_code(std::errc::not_a_directory);
return false;
}
The first line should use status not symlink_status, that's the bug.