[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor

2016-10-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor

2016-09-21 Thread timshen at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641 --- Comment #4 from Tim Shen --- Author: timshen Date: Thu Sep 22 03:15:58 2016 New Revision: 240340 URL: https://gcc.gnu.org/viewcvs?rev=240340=gcc=rev Log: PR libstdc++/77641 * include/std/variant

[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor

2016-09-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > std::string_view is a literal type, but is not trivially default > constructible. Oops, I meant X is a literal type (my original code uses variant

[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor

2016-09-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641 --- Comment #2 from Jonathan Wakely --- Testing this: --- a/libstdc++-v3/include/std/variant +++ b/libstdc++-v3/include/std/variant @@ -168,7 +168,7 @@ namespace __variant template using __storage = typename __storage_type<_Type>::type;

[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor

2016-09-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|