https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112377
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to David Binderman from comment #0) > I think that should be enough to implement the new warning for C++. Certainly not. Apart from the fact that there's a lot more needed than just making the option accepted by the C++ front end, there's the question of what it should actually do. Would it only warn for malloc, calloc etc., or operator new as well? And what about warning about alignment for overaligned types, both when using operator new (with or without a std::align_val_t argument) and malloc. Should that be a separate warning?