This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77727] Unwrapping std::optional constructor is not working for non-transferable object
- From: "ville at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Sep 2016 20:52:14 +0000
- Subject: [Bug libstdc++/77727] Unwrapping std::optional constructor is not working for non-transferable object
- Auto-submitted: auto-generated
- References: <bug-77727-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77727
--- Comment #3 from ville at gcc dot gnu.org ---
Author: ville
Date: Mon Sep 26 20:51:42 2016
New Revision: 240511
URL: https://gcc.gnu.org/viewcvs?rev=240511&root=gcc&view=rev
Log:
PR libstdc++/77727
* include/std/optional (optional(const optional<_Up>&)):
Default-initialize the base and use emplace.
(optional(optional<_Up>&&)): Likewise.
* testsuite/20_util/optional/cons/77727.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/optional/cons/77727.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/optional