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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
          Component|c++                         |target
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

            std::memset(ptr, 0, sizeof(bool));
            new (ptr) bool;


The memset here is dead. the lifetime of bool starts after the new.

GCC 16 is correct here.

gem5 needs to be fixed.

Reply via email to