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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think it's a false positive warning, so a compiler bug.

std::generator correctly provides matching promise-type::operator new and
promise-type::operator delete, but it looks like the compiler is inlining
_Promise_alloc<void>::operator new so that it only sees ::operator new, and
then it complains that it doesn't match the _Promise_alloc<void>::operator
delete.

Reply via email to