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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-08-27
     Ever confirmed|0                           |1

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You're right, sorry. GCC warns about the memset, but that warning is apparently
given for cases that are not undefined, just questionable:

mozilla_jwakely0/test_gcc9.cc:41:51: warning: ‘void* memset(void*, int,
size_t)’ writing to an object of non-trivial type ‘struct E’; use assignment
instead [-Wclass-memaccess]

Confirmed then.

Reply via email to