Created attachment 21596
test.cpp
On FreeBSD the attached testcase triggers the errno=2 (No such file or
directory):
> 71779 io CALL
open(0x4065e0,0x601<O_WRONLY|O_CREAT|O_TRUNC>,0666<S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH>)
> 71779 io NAMI "a/b"
> 71779 io RET open -1 errno 2 No such file or directory
But the error message printed through the exception std::ifstream::failure
doesn't contain this information:
> ios_base::clear: unspecified iostream_category error
Why is it "unspecified"?
It should say exactly what happened.
FreeBSD 11.2.
io.cpp
(308 bytes, text/x-c++src)