[Bug c++/94923] False positive -Wclass-memaccess with trivially copyable std::optional

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 2 22:34:54 GMT 2020


Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-05-02
     Ever confirmed|0                           |1
                 CC|                            |msebor at gcc dot gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning code treats character types as special in this context but there's
no such handling for std::byte.  It probably makes sense to extend the same
treatment to it.

More information about the Gcc-bugs mailing list