This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77727] Unwrapping std::optional constructor is not working for non-transferable object


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]