This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Sep 2016 11:50:08 +0000
- Subject: [Bug libstdc++/77641] std::variant copy-initialization fails for type with non-trivial constexpr ctor
- Auto-submitted: auto-generated
- References: <bug-77641-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77641
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(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<int,
string_view> but I reduced it to variant<X> for this report).