This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77288] Std::experimental::optional::operator= implementation is broken in gcc 6.1
- From: "ville.voutilainen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2016 18:17:18 +0000
- Subject: [Bug libstdc++/77288] Std::experimental::optional::operator= implementation is broken in gcc 6.1
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-77288-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77288
--- Comment #5 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Ah. That would indeed mean that every converting assignment introduces
a temporary. Design-wise I'd rather have it so that optional doesn't convert
at all in the assignment. :)