[Bug libstdc++/87855] std::optional<T> only copy-constructible if T is trivially copy-constructible

ville.voutilainen at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 1 18:06:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87855

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-11-01
                 CC|                            |ville.voutilainen at gmail dot com
           Assignee|unassigned at gcc dot gnu.org      |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Created attachment 44943
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44943&action=edit
A proposed patch

I have attached a candidate fix. Can you check whether it fixes the problem?


More information about the Gcc-bugs mailing list