[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #8 from Jonathan Wakely --- Author: redi Date: Thu May 16 23:09:51 2019 New Revision: 271302 URL: https://gcc.gnu.org/viewcvs?rev=271302&root=gcc&view=rev Log: PR libstdc++/90299 make filesystem::absolute overloads consistent In thi

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #7 from Jonathan Wakely --- Author: redi Date: Thu May 16 23:00:26 2019 New Revision: 271301 URL: https://gcc.gnu.org/viewcvs?rev=271301&root=gcc&view=rev Log: PR libstdc++/90299 make filesystem::absolute overloads consistent In thi

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #6 from Jonathan Wakely --- Fixed on trunk so far.

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Sat May 4 14:35:33 2019 New Revision: 270874 URL: https://gcc.gnu.org/viewcvs?rev=270874&root=gcc&view=rev Log: PR libstdc++/90299 make filesystem::absolute overloads consistent In thi

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #4 from Jonathan Wakely --- Although that suggests I should report the error as errc::invalid_argument not errc::no_such_file_or_directory.

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #3 from Jonathan Wakely --- And for the avoidance of doubt, the problem is not that !exists(p) (although that is true) but that an empty path doesn't refer to any file system location. absolute("does not exist") is not an error, but a

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 --- Comment #2 from Jonathan Wakely --- I changed absolute("", ec) to return an error intentionally, and I think absolute("") should also return an error. The effects of the function are to "compose an absolute path referencing the same file sys

[Bug libstdc++/90299] std::filesystem::absolute("") and std::filesystem::absolute("", ec) behave differently

2019-05-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90299 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|