[Bug middle-end/124564] weird gcc warning with sub-coroutines and std::ranges::elements_of
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 18 14:28:14 GMT 2026
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.
More information about the Gcc-bugs
mailing list