Re: [PATCH] handle std::byte in -Wclass-memaccess (PR 94923)

2020-05-19 Thread Martin Sebor via Gcc-patches
On 5/18/20 3:04 PM, Jason Merrill wrote: On 5/8/20 2:16 PM, Martin Sebor wrote: -Wclass-memaccess is suppressed for write accesses to trivially copyable but otherwise nontrivial class types by character types but the suppression neglects to consider the equivalent accesses by std::byte.  The att

Re: [PATCH] handle std::byte in -Wclass-memaccess (PR 94923)

2020-05-18 Thread Jason Merrill via Gcc-patches
On 5/8/20 2:16 PM, Martin Sebor wrote: -Wclass-memaccess is suppressed for write accesses to trivially copyable but otherwise nontrivial class types by character types but the suppression neglects to consider the equivalent accesses by std::byte.  The attached patch extends the same privilege als

[PATCH] handle std::byte in -Wclass-memaccess (PR 94923)

2020-05-08 Thread Martin Sebor via Gcc-patches
-Wclass-memaccess is suppressed for write accesses to trivially copyable but otherwise nontrivial class types by character types but the suppression neglects to consider the equivalent accesses by std::byte. The attached patch extends the same privilege also to it. I couldn't find a utility func