https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113246
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Davide Pesavento from comment #1)
> Another interesting(?) behavior, when run from a non-existing (deleted)
> working directory:
>
> weakly_canonical("foo") returns "foo", while weakly_canonical("./foo")
> throws:
>
> > terminate called after throwing an instance of
> > 'std::filesystem::__cxx11::filesystem_error'
> > what(): filesystem error: cannot make canonical path: No such file or
> > directory [.]
This case is a bit more interesting. I'll have to investigate further.