[Bug libstdc++/88888] Cannot construct filesystem::path from variable length array

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/88888] Cannot construct filesystem::path from variable length array

2019-04-24 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 Ville Voutilainen changed: What|Removed |Added CC||ville.voutilainen at gmail dot com

[Bug libstdc++/88888] Cannot construct filesystem::path from variable length array

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 --- Comment #2 from Jonathan Wakely --- (The versions passing i as the length will do the wrong thing here, because the array actually contains the empty string "", but I'm just showing examples of valid syntax that work with VLAs).

[Bug libstdc++/88888] Cannot construct filesystem::path from variable length array

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 --- Comment #1 from Jonathan Wakely --- I'm not sure we should bother doing anything here. There are various workarounds possible: std::filesystem::path p(vla); std::filesystem::path p({vla, (size_t)i}); std::filesystem::path p = (const char*)vl

[Bug libstdc++/88888] Cannot construct filesystem::path from variable length array

2019-01-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|