https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98130
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, shouldn't the code match what the comment says?
/* If the call is to a replaceable operator delete and results
from a delete expression as opposed to a direct call to
such operator, then we can treat it as free. */
There is no check that it is a replaceable operator, that would mean
testing also
&& DECL_IS_REPLACEABLE_OPERATOR (fndecl)