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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Last reconfirmed|                            |2021-7-22
             Status|UNCONFIRMED                 |RESOLVED
          Component|tree-optimization           |testsuite

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test calls a member operator new that returns an invalid address and then
stores data at that address.  The warning correctly points that out.

class B
{
public :
  void *operator new(size_t t) { return (void*)(42); };
};

Removing the bad definition avoids the warning.

Reply via email to